Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1326)

Unified Diff: cc/CCLayerTreeHost.cpp

Issue 10915298: Add CCDelegatingRenderer, and corresponding IPCs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCLayerTreeHost.h ('k') | cc/CCLayerTreeHostImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « cc/CCLayerTreeHost.h ('k') | cc/CCLayerTreeHostImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698