diff options
Diffstat (limited to 'WebCore/platform/graphics/chromium/WebGLLayerChromium.cpp')
-rw-r--r-- | WebCore/platform/graphics/chromium/WebGLLayerChromium.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/chromium/WebGLLayerChromium.cpp b/WebCore/platform/graphics/chromium/WebGLLayerChromium.cpp index 2055ae6..5b34bb9 100644 --- a/WebCore/platform/graphics/chromium/WebGLLayerChromium.cpp +++ b/WebCore/platform/graphics/chromium/WebGLLayerChromium.cpp @@ -50,8 +50,11 @@ WebGLLayerChromium::WebGLLayerChromium(GraphicsLayerChromium* owner) { } -void WebGLLayerChromium::updateContents() +void WebGLLayerChromium::updateContentsIfDirty() { + if (!m_contentsDirty) + return; + GraphicsContext3D* rendererContext = layerRendererContext(); ASSERT(m_context); if (m_textureChanged) { |