modules/graphics/src/main/java/com/sun/glass/ui/Application.java

Print this page
rev 6142 : RT-35355 [Monocle] Software rendering ports of Monocle need notification of pixel upload end

*** 362,371 **** --- 362,383 ---- public boolean hasWindowManager() { //checkEventThread(); // Prism (Mac) return true; // overridden in platform application class } + /** + * Gets a Runnable object to be called on the application thread to + * notify that rendering has completed. Systems that require notification + * of rendering completion should override this method. + * + * @return a Runnable to be called on the application thread when rendering + * has completed, or null if no notification is needed. + */ + public Runnable getRenderEndNotifier() { + return null; + } + public void terminate() { checkEventThread(); try { final List<Window> windows = new LinkedList<>(Window.getWindows()); for (Window window : windows) {