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

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: Rename to GaneshContextProvider 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 3af415a14bf6f288626ca5e5c3b5e0e7418082ed..ef7db003d4b87a17193718caa389a952934294b2 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -37,8 +37,6 @@ static int numLayerTreeInstances;
namespace cc {
-bool LayerTreeHost::s_needsFilterContext = false;
-
RendererCapabilities::RendererCapabilities()
: bestTextureFormat(0)
, usingPartialSwap(false)
@@ -49,6 +47,7 @@ RendererCapabilities::RendererCapabilities()
, usingDiscardBackbuffer(false)
, usingEglImage(false)
, allowPartialTextureUpdates(false)
+ , usingOffscreenContext3d(false)
, maxTextureSize(0)
{
}
@@ -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++;
« cc/gl_renderer.cc ('K') | « cc/layer_tree_host.h ('k') | cc/layer_tree_host_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698