Index: cc/CCLayerTreeHost.cpp |
diff --git a/cc/CCLayerTreeHost.cpp b/cc/CCLayerTreeHost.cpp |
index ebd227e155fb8c17a473887f8e943575956eb18f..8003a513ecbdde63185f05eb233bba28b89cdaaa 100644 |
--- a/cc/CCLayerTreeHost.cpp |
+++ b/cc/CCLayerTreeHost.cpp |
@@ -61,7 +61,6 @@ CCLayerTreeSettings::~CCLayerTreeSettings() |
RendererCapabilities::RendererCapabilities() |
: bestTextureFormat(0) |
- , contextHasCachedFrontBuffer(false) |
, usingPartialSwap(false) |
, usingAcceleratedPainting(false) |
, usingSetVisibility(false) |
@@ -69,6 +68,7 @@ RendererCapabilities::RendererCapabilities() |
, usingGpuMemoryManager(false) |
, usingDiscardFramebuffer(false) |
, usingEglImage(false) |
+ , allowPartialTextureUpdates(true) |
, maxTextureSize(0) |
{ |
} |
@@ -165,7 +165,7 @@ void CCLayerTreeHost::initializeRenderer() |
m_settings.acceleratePainting = m_proxy->rendererCapabilities().usingAcceleratedPainting; |
// Update m_settings based on partial update capability. |
- m_settings.maxPartialTextureUpdates = min(m_settings.maxPartialTextureUpdates, m_proxy->maxPartialTextureUpdates()); |
+ m_settings.maxPartialTextureUpdates = m_proxy->rendererCapabilities().allowPartialTextureUpdates ? min(m_settings.maxPartialTextureUpdates, m_proxy->maxPartialTextureUpdates()) : 0; |
m_contentsTextureManager = CCPrioritizedTextureManager::create(0, m_proxy->rendererCapabilities().maxTextureSize, CCRenderer::ContentPool); |
m_surfaceMemoryPlaceholder = m_contentsTextureManager->createTexture(IntSize(), GraphicsContext3D::RGBA); |