sun.java2d.pipe.hw.AccelDeviceEventNotifier Java Examples

The following examples show how to use sun.java2d.pipe.hw.AccelDeviceEventNotifier. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WGLGraphicsConfig.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #2
Source File: WGLGraphicsConfig.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #3
Source File: WGLGraphicsConfig.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #4
Source File: WGLGraphicsConfig.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #5
Source File: WGLGraphicsConfig.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #6
Source File: WGLGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #7
Source File: WGLGraphicsConfig.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #8
Source File: WGLGraphicsConfig.java    From dragonwell8_jdk with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #9
Source File: WGLGraphicsConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public void dispose() {
    OGLRenderQueue rq = OGLRenderQueue.getInstance();
    rq.lock();
    try {
        rq.flushAndInvokeNow(new Runnable() {
            public void run() {
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_RESET);
                AccelDeviceEventNotifier.
                    eventOccured(screen,
                        AccelDeviceEventNotifier.DEVICE_DISPOSED);
            }
        });
    } finally {
        rq.unlock();
    }
    if (pCfgInfo != 0) {
        OGLRenderQueue.disposeGraphicsConfig(pCfgInfo);
        pCfgInfo = 0;
    }
}
 
Example #10
Source File: CGLGraphicsConfig.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    int displayID = getDevice().getCGDisplayID();
    AccelDeviceEventNotifier.addListener(l, displayID);
}
 
Example #11
Source File: WGLGraphicsConfig.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
 
Example #12
Source File: CGLGraphicsConfig.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #13
Source File: CGLGraphicsConfig.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    int displayID = getDevice().getCGDisplayID();
    AccelDeviceEventNotifier.addListener(l, displayID);
}
 
Example #14
Source File: GLXGraphicsConfig.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #15
Source File: GLXGraphicsConfig.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
 
Example #16
Source File: D3DGraphicsConfig.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, device.getScreen());
}
 
Example #17
Source File: GLXGraphicsConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
 
Example #18
Source File: GLXGraphicsConfig.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
 
Example #19
Source File: D3DGraphicsConfig.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #20
Source File: D3DGraphicsConfig.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, device.getScreen());
}
 
Example #21
Source File: CGLGraphicsConfig.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #22
Source File: GLXGraphicsConfig.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #23
Source File: GLXGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #24
Source File: GLXGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
 
Example #25
Source File: WGLGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #26
Source File: WGLGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
 
Example #27
Source File: D3DGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #28
Source File: D3DGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, device.getScreen());
}
 
Example #29
Source File: CGLGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
 
Example #30
Source File: CGLGraphicsConfig.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    int displayID = getDevice().getCGDisplayID();
    AccelDeviceEventNotifier.addListener(l, displayID);
}