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

Unified Diff: cc/scrollbar_layer.cc

Issue 11316297: Only do full tree sync if tree is actually changed, otherwise just push properties (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extra newline 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/scrollbar_layer.cc
diff --git a/cc/scrollbar_layer.cc b/cc/scrollbar_layer.cc
index 09c4e7f0fa75ce8f60e41000ba56e9df7893ec98..9c7ae732c0accee5f01775c524c77d7f72ec8fab 100644
--- a/cc/scrollbar_layer.cc
+++ b/cc/scrollbar_layer.cc
@@ -40,6 +40,15 @@ ScrollbarLayer::~ScrollbarLayer()
{
}
+void ScrollbarLayer::setScrollLayerId(int id)
+{
+ if (id == m_scrollLayerId)
+ return;
+
+ m_scrollLayerId = id;
+ setNeedsFullTreeSync();
+}
+
int ScrollbarLayer::maxTextureSize() {
DCHECK(layerTreeHost());
return layerTreeHost()->rendererCapabilities().maxTextureSize;
« cc/layer_tree_host.cc ('K') | « cc/scrollbar_layer.h ('k') | cc/tree_synchronizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698