com.sun.javafx.webkit.prism.WCRenderQueueImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openjfx-78-backport Show documentation
Show all versions of openjfx-78-backport Show documentation
This is a backport of OpenJFX 8 to run on Java 7.
The newest version!
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
*/
package com.sun.javafx.webkit.prism;
import com.sun.webkit.graphics.WCGraphicsContext;
import com.sun.webkit.graphics.WCRectangle;
import com.sun.webkit.graphics.WCRenderQueue;
final class WCRenderQueueImpl extends WCRenderQueue {
WCRenderQueueImpl(WCGraphicsContext gc) {
super(gc);
}
WCRenderQueueImpl(WCRectangle clip, boolean opaque) {
super(clip, opaque);
}
@Override protected void flush() {
if (!isEmpty()) {
PrismInvoker.invokeOnRenderThread(new Runnable() {
@Override public void run() {
decode();
}
});
}
}
}