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

Unified Diff: cc/layer_tree_host_impl.cc

Issue 11529006: [cc] Fold more update calls into updateDrawProperties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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_impl.cc
diff --git a/cc/layer_tree_host_impl.cc b/cc/layer_tree_host_impl.cc
index f6b753915070bb426cf9fcb728db7a9f9d36ec29..94d0fc6b5c0cfa9bcbd4e8eb12c6c4f7c8c51350 100644
--- a/cc/layer_tree_host_impl.cc
+++ b/cc/layer_tree_host_impl.cc
@@ -379,13 +379,6 @@ void LayerTreeHostImpl::trackDamageForAllSurfaces(LayerImpl* rootDrawLayer, cons
}
}
-void LayerTreeHostImpl::updateRootScrollLayerImplTransform()
-{
- if (rootScrollLayer()) {
- rootScrollLayer()->setImplTransform(implTransform());
- }
-}
-
void LayerTreeHostImpl::updateDrawProperties()
{
if (!needsUpdateDrawProperties())
@@ -406,7 +399,9 @@ void LayerTreeHostImpl::calculateRenderSurfaceLayerList(LayerList& renderSurface
DCHECK(rootLayer());
DCHECK(m_renderer); // For maxTextureSize.
{
- updateRootScrollLayerImplTransform();
+ if (rootScrollLayer()) {
+ rootScrollLayer()->setImplTransform(implTransform());
Sami 2012/12/11 11:51:54 I guess this file is still in WebKit style so the
+ }
TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc");
float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor();

Powered by Google App Engine
This is Rietveld 408576698