diff options
author | Sven Gothel <[email protected]> | 2023-03-04 19:57:39 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2023-03-04 19:57:39 +0100 |
commit | ead8651394c792950025114cfcb6476e8b82bf50 (patch) | |
tree | 28d3ff3c78d95c8c6d85512335a1f8c613cde10b /src/nativewindow | |
parent | 0b796fe6963705a231bc1f24a5b4e6651b7e928f (diff) |
GLDrawableFactoryImpl:createDummyDrawable(): Similar to createOffscreenDrawable() prefer createSurfacelessImpl() over createDummySurfaceImpl() to reduce resources (no actual window)
This enhances the 'dummy drawable' use-case implementation, i.e. for shared context.
Diffstat (limited to 'src/nativewindow')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/GenericUpstreamSurfacelessHook.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/GenericUpstreamSurfacelessHook.java b/src/nativewindow/classes/com/jogamp/nativewindow/GenericUpstreamSurfacelessHook.java index 044aebc21..9a8afc937 100644 --- a/src/nativewindow/classes/com/jogamp/nativewindow/GenericUpstreamSurfacelessHook.java +++ b/src/nativewindow/classes/com/jogamp/nativewindow/GenericUpstreamSurfacelessHook.java @@ -1,5 +1,5 @@ /** - * Copyright 2014 JogAmp Community. All rights reserved. + * Copyright 2014-2023 JogAmp Community. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are * permitted provided that the following conditions are met: @@ -27,13 +27,6 @@ */ package com.jogamp.nativewindow; -import com.jogamp.nativewindow.AbstractGraphicsDevice; -import com.jogamp.nativewindow.NativeSurface; -import com.jogamp.nativewindow.ProxySurface; -import com.jogamp.nativewindow.UpstreamSurfaceHook; - -import com.jogamp.nativewindow.UpstreamSurfaceHookMutableSize; - public class GenericUpstreamSurfacelessHook extends UpstreamSurfaceHookMutableSize { /** * @param width the initial width as returned by {@link NativeSurface#getSurfaceWidth()} via {@link UpstreamSurfaceHook#getSurfaceWidth(ProxySurface)}, |