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

Unified Diff: cc/trees/layer_tree_host.h

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add fix for empty scroll-layer bounds. Created 6 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
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 640a70f92c44864042f29e37d4f1336475a367cb..23097bc4cef2123d6863b9e42e3c8da4c7d73a90 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -192,6 +192,12 @@ class CC_EXPORT LayerTreeHost {
scoped_refptr<Layer> page_scale_layer,
scoped_refptr<Layer> inner_viewport_scroll_layer,
scoped_refptr<Layer> outer_viewport_scroll_layer);
+ Layer* inner_viewport_scroll_layer() const {
+ return inner_viewport_scroll_layer_.get();
+ }
+ Layer* outer_viewport_scroll_layer() const {
+ return outer_viewport_scroll_layer_.get();
+ }
const LayerTreeSettings& settings() const { return settings_; }
@@ -232,6 +238,8 @@ class CC_EXPORT LayerTreeHost {
base::TimeDelta duration);
void ApplyScrollAndScale(const ScrollAndScaleSet& info);
+ gfx::Vector2d DistributeScrollOffsetToViewports(const gfx::Vector2d offset,
+ Layer* layer);
void SetImplTransform(const gfx::Transform& transform);

Powered by Google App Engine
This is Rietveld 408576698