summaryrefslogtreecommitdiffstats
path: root/src/nativewindow/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-06-27 05:06:07 +0200
committerSven Gothel <[email protected]>2012-06-27 05:06:07 +0200
commit6bff43023b630d7e9f413e39821ebf89c40a399a (patch)
tree77a17f649e94c5cee38d1b206b533a318710d4cf /src/nativewindow/classes/jogamp
parenta06e40cce89615eb8c4b080842997c9c3ad1130b (diff)
Misc cleanup: add @Override
Diffstat (limited to 'src/nativewindow/classes/jogamp')
-rw-r--r--src/nativewindow/classes/jogamp/nativewindow/windows/GDISurface.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nativewindow/classes/jogamp/nativewindow/windows/GDISurface.java b/src/nativewindow/classes/jogamp/nativewindow/windows/GDISurface.java
index bc02ac5dc..4da48bdae 100644
--- a/src/nativewindow/classes/jogamp/nativewindow/windows/GDISurface.java
+++ b/src/nativewindow/classes/jogamp/nativewindow/windows/GDISurface.java
@@ -51,11 +51,13 @@ public class GDISurface extends ProxySurface {
this.windowHandle=windowHandle;
}
+ @Override
protected final void invalidateImpl() {
windowHandle=0;
surfaceHandle=0;
}
+ @Override
final protected int lockSurfaceImpl() {
if (0 != surfaceHandle) {
throw new InternalError("surface not released");
@@ -70,6 +72,7 @@ public class GDISurface extends ProxySurface {
return (0 != surfaceHandle) ? LOCK_SUCCESS : LOCK_SURFACE_NOT_READY;
}
+ @Override
final protected void unlockSurfaceImpl() {
if (0 == surfaceHandle) {
throw new InternalError("surface not acquired: "+this+", thread: "+Thread.currentThread().getName());
@@ -80,10 +83,12 @@ public class GDISurface extends ProxySurface {
surfaceHandle=0;
}
+ @Override
final public long getSurfaceHandle() {
return surfaceHandle;
}
+ @Override
final public String toString() {
return "GDISurface[config "+getPrivateGraphicsConfiguration()+
", displayHandle 0x"+Long.toHexString(getDisplayHandle())+