Java 类sun.java2d.pipe.hw.AccelDeviceEventListener 实例源码

项目:jdk8u-jdk    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:openjdk9    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:jdk8u_jdk    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:infobip-open-jdk-8    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:jdk8u-dev-jdk    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:jdk7-jdk    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:openjdk-source-code-learn    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:OLD-OpenJDK8    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:JAVA_UNIT    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:openjdk-jdk7u-jdk    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:openjdk-icedtea7    文件:RSLAPITest.java   
private static void testContext(final AccelGraphicsConfig agc) {
    BufferedContext c = agc.getContext();
    final AccelDeviceEventListener l = new AccelDeviceEventListener() {
        public void onDeviceDispose() {
            System.out.println("onDeviceDispose invoked");
            agc.removeDeviceEventListener(this);
        }
        public void onDeviceReset() {
            System.out.println("onDeviceReset invoked");
        }
    };
    agc.addDeviceEventListener(l);

    RenderQueue rq = c.getRenderQueue();
    rq.lock();
    try {
        c.saveState();
        rq.flushNow();
        c.restoreState();
        rq.flushNow();
        System.out.println("Passed: Save/Restore");
    } finally {
        rq.unlock();
    }
}
项目:OpenJSharp    文件:CGLGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    int displayID = getDevice().getCGDisplayID();
    AccelDeviceEventNotifier.addListener(l, displayID);
}
项目:OpenJSharp    文件:CGLGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:OpenJSharp    文件:D3DGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, device.getScreen());
}
项目:OpenJSharp    文件:D3DGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:OpenJSharp    文件:WGLGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
项目:OpenJSharp    文件:WGLGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:OpenJSharp    文件:GLXGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
项目:OpenJSharp    文件:GLXGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:jdk8u-jdk    文件:CGLGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    int displayID = getDevice().getCGDisplayID();
    AccelDeviceEventNotifier.addListener(l, displayID);
}
项目:jdk8u-jdk    文件:CGLGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:jdk8u-jdk    文件:D3DGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, device.getScreen());
}
项目:jdk8u-jdk    文件:D3DGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:jdk8u-jdk    文件:WGLGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
项目:jdk8u-jdk    文件:WGLGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:jdk8u-jdk    文件:GLXGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
项目:jdk8u-jdk    文件:GLXGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:openjdk9    文件:GLXGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
项目:openjdk9    文件:GLXGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:openjdk9    文件:CGLGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    int displayID = getDevice().getCGDisplayID();
    AccelDeviceEventNotifier.addListener(l, displayID);
}
项目:openjdk9    文件:CGLGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:openjdk9    文件:D3DGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, device.getScreen());
}
项目:openjdk9    文件:D3DGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:openjdk9    文件:WGLGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, screen.getScreen());
}
项目:openjdk9    文件:WGLGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:jdk8u_jdk    文件:CGLGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    int displayID = getDevice().getCGDisplayID();
    AccelDeviceEventNotifier.addListener(l, displayID);
}
项目:jdk8u_jdk    文件:CGLGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}
项目:jdk8u_jdk    文件:D3DGraphicsConfig.java   
@Override
public void addDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.addListener(l, device.getScreen());
}
项目:jdk8u_jdk    文件:D3DGraphicsConfig.java   
@Override
public void removeDeviceEventListener(AccelDeviceEventListener l) {
    AccelDeviceEventNotifier.removeListener(l);
}