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

Unified Diff: cc/layer_tree_host.cc

Issue 11748031: cc: remove loseOutputSurface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 12 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/layer_tree_host.h ('k') | cc/proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layer_tree_host.cc
diff --git a/cc/layer_tree_host.cc b/cc/layer_tree_host.cc
index 12ab72b4cfcdf649fc2f07e17828e546f3aa2134..e8fd3733a7ff07b288dd0453605ebf89981027bd 100644
--- a/cc/layer_tree_host.cc
+++ b/cc/layer_tree_host.cc
@@ -76,7 +76,6 @@ LayerTreeHost::LayerTreeHost(LayerTreeHostClient* client, const LayerTreeSetting
, m_renderingStats()
, m_rendererInitialized(false)
, m_outputSurfaceLost(false)
- , m_numTimesRecreateShouldFail(0)
, m_numFailedRecreateAttempts(0)
, m_settings(settings)
, m_debugState(settings.initialDebugState)
@@ -176,13 +175,7 @@ LayerTreeHost::RecreateResult LayerTreeHost::recreateOutputSurface()
TRACE_EVENT0("cc", "LayerTreeHost::recreateOutputSurface");
DCHECK(m_outputSurfaceLost);
- bool recreated = false;
- if (!m_numTimesRecreateShouldFail)
- recreated = m_proxy->recreateOutputSurface();
- else
- m_numTimesRecreateShouldFail--;
-
- if (recreated) {
+ if (m_proxy->recreateOutputSurface()) {
m_client->didRecreateOutputSurface(true);
m_outputSurfaceLost = false;
return RecreateSucceeded;
@@ -529,13 +522,6 @@ void LayerTreeHost::startPageScaleAnimation(gfx::Vector2d targetOffset, bool use
m_proxy->startPageScaleAnimation(targetOffset, useAnchor, scale, duration);
}
-void LayerTreeHost::loseOutputSurface(int numTimes)
-{
- TRACE_EVENT1("cc", "LayerTreeHost::loseCompositorOutputSurface", "numTimes", numTimes);
- m_numTimesRecreateShouldFail = numTimes - 1;
- m_proxy->loseOutputSurface();
-}
-
PrioritizedResourceManager* LayerTreeHost::contentsTextureManager() const
{
return m_contentsTextureManager.get();
« no previous file with comments | « cc/layer_tree_host.h ('k') | cc/proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698