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

Unified Diff: cc/layers/layer.h

Issue 2877673002: Rewrite Layer::SetScrollOffset{FromImplSide} property tree fast-path (Closed)
Patch Set: Suppress bug in PaintArtifactCompositor Created 3 years, 7 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 | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 581271731c5ad90510b582bc335461e999073947..a29bf7eba7e4a6b7d7e5ab6313fc3d55e5f1d237 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -505,6 +505,12 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
// layer should own a property tree node or not.
void SetPropertyTreesNeedRebuild();
+ // Fast-path for |SetScrollOffset| and |SetScrollOffsetFromImplSide| to
+ // directly update scroll offset property values in the property tree without
+ // needing a full tree rebuild. Returns true if the property tree nodes were
+ // updated, false otherwise.
+ bool UpdateExistingScrollOffsetPropertyTreeNodes(const gfx::ScrollOffset&);
wkorman 2017/05/11 17:42:13 What about just "UpdateScrollOffset"? The rest see
enne (OOO) 2017/05/11 17:44:28 I assume this dance here is because you can SetScr
pdr. 2017/05/11 18:03:37 Good idears. Done.
+
// Encapsulates all data, callbacks or interfaces received from the embedder.
// TODO(khushalsagar): This is only valid when PropertyTrees are built
// internally in cc. Update this for the SPv2 path where blink generates
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698