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

Unified Diff: cc/single_thread_proxy.cc

Issue 11827036: cc: Prohibit impl-side painting with single threaded compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Base files missing Created 7 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/single_thread_proxy.cc
diff --git a/cc/single_thread_proxy.cc b/cc/single_thread_proxy.cc
index 9cccd0ff4952f34e64da2e3ff07af342fbbef60f..96418bbaa268ba764f8928a08e9ea4aff8281796 100644
--- a/cc/single_thread_proxy.cc
+++ b/cc/single_thread_proxy.cc
@@ -29,6 +29,10 @@ SingleThreadProxy::SingleThreadProxy(LayerTreeHost* layerTreeHost)
{
TRACE_EVENT0("cc", "SingleThreadProxy::SingleThreadProxy");
DCHECK(Proxy::isMainThread());
+ DCHECK(layerTreeHost);
+
+ // Impl-side painting not supported without threaded compositing
+ DCHECK(!layerTreeHost->settings().implSidePainting);
}
void SingleThreadProxy::start()
@@ -361,9 +365,6 @@ bool SingleThreadProxy::doComposite()
m_layerTreeHostImpl->animate(base::TimeTicks::Now(), base::Time::Now());
- if (m_layerTreeHostImpl->settings().implSidePainting)
- m_layerTreeHostImpl->manageTiles();
-
// We guard prepareToDraw() with canDraw() because it always returns a valid frame, so can only
// be used when such a frame is possible. Since drawLayers() depends on the result of
// prepareToDraw(), it is guarded on canDraw() as well.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698