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

Unified Diff: cc/layer_tree_host.cc

Issue 12212007: cc: Route offscreen context creation for compositor to the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 10 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
Index: cc/layer_tree_host.cc
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
index 531eab6e8d881d39896443e1291f641e40139440..2546419d9278d65670d973d66f4d8b2212974dc0 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -36,8 +36,6 @@ static int numLayerTreeInstances;
namespace cc {
-bool LayerTreeHost::s_needsFilterContext = false;
-
RendererCapabilities::RendererCapabilities()
: bestTextureFormat(0)
, usingPartialSwap(false)
@@ -48,6 +46,7 @@ RendererCapabilities::RendererCapabilities()
, usingDiscardBackbuffer(false)
, usingEglImage(false)
, allowPartialTextureUpdates(false)
+ , usingOffscreenContext3d(false)
, maxTextureSize(0)
, avoidPow2Textures(false)
{
@@ -73,6 +72,7 @@ scoped_ptr<LayerTreeHost> LayerTreeHost::create(LayerTreeHostClient* client, con
LayerTreeHost::LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSettings& settings)
: m_animating(false)
, m_needsFullTreeSync(true)
+ , m_needsFilterContext(false)
, m_client(client)
, m_commitNumber(0)
, m_renderingStats()
@@ -183,6 +183,8 @@ LayerTreeHost::RecreateResult LayerTreeHost::recreateOutputSurface()
return RecreateSucceeded;
}
+ m_client->willRetryRecreateOutputSurface();
+
// Tolerate a certain number of recreation failures to work around races
// in the output-surface-lost machinery.
m_numFailedRecreateAttempts++;

Powered by Google App Engine
This is Rietveld 408576698