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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 16679011: Add viewport scrollbar class to support overlay scrollbars for pinch zoom virtual viewport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add scrollbars layers in compositor, plumb layer ids to LayerTreeImpl. Created 7 years, 6 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
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 57b7edfb6469183f62325015a774d26d8ff2cac9..7d72cf70a53c5daf5ae7bcf9857b5e4074ee1e7f 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -110,6 +110,9 @@ class CC_EXPORT LayerTreeImpl {
void FindRootScrollLayer();
void UpdateMaxScrollOffset();
+ void SetPinchViewportLayerIds(int page_scale_layer_id,
+ int inner_viewport_scroll_layer_id,
+ int outer_viewport_scroll_layer_id);
SkColor background_color() const { return background_color_; }
void set_background_color(SkColor color) { background_color_ = color; }
@@ -210,6 +213,10 @@ class CC_EXPORT LayerTreeImpl {
SkColor background_color_;
bool has_transparent_background_;
+ LayerImpl* page_scale_layer_;
+ LayerImpl* inner_viewport_scroll_layer_;
+ LayerImpl* outer_viewport_scroll_layer_;
+
float page_scale_factor_;
float page_scale_delta_;
float sent_page_scale_delta_;

Powered by Google App Engine
This is Rietveld 408576698