use of com.gargoylesoftware.htmlunit.javascript.host.canvas.rendering.AwtRenderingBackend in project htmlunit by HtmlUnit.
the class CanvasRenderingContext2D method getRenderingBackend.
private RenderingBackend getRenderingBackend() {
if (renderingBackend_ == null) {
final int imageWidth = Math.max(1, canvas_.getWidth());
final int imageHeight = Math.max(1, canvas_.getHeight());
renderingBackend_ = new AwtRenderingBackend(imageWidth, imageHeight);
}
return renderingBackend_;
}
Aggregations