| Index: cc/trees/layer_tree_impl.h
|
| diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
|
| index 51ee4fdaaec70921e80f1a4ae0ca38037477eb1c..fb44bfa0d61ee3ffa533cfb0c3c60934ba4b0799 100644
|
| --- a/cc/trees/layer_tree_impl.h
|
| +++ b/cc/trees/layer_tree_impl.h
|
| @@ -61,10 +61,12 @@ class CC_EXPORT LayerTreeImpl {
|
| // This is the number of times a fixed point has to be hit contiuously by a
|
| // layer to consider it as jittering.
|
| enum : int { kFixedPointHitsThreshold = 3 };
|
| - LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl,
|
| - scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor,
|
| - scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio,
|
| - scoped_refptr<SyncedElasticOverscroll> elastic_overscroll);
|
| + LayerTreeImpl(
|
| + LayerTreeHostImpl* layer_tree_host_impl,
|
| + scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor,
|
| + scoped_refptr<SyncedProperty<ScaleGroup>> subframe_page_scale_factor,
|
| + scoped_refptr<SyncedBrowserControls> top_controls_shown_ratio,
|
| + scoped_refptr<SyncedElasticOverscroll> elastic_overscroll);
|
| virtual ~LayerTreeImpl();
|
|
|
| void Shutdown();
|
| @@ -210,12 +212,17 @@ class CC_EXPORT LayerTreeImpl {
|
| &property_trees->scroll_tree.scroll_offset_map(), this);
|
| }
|
| void SetPageScaleOnActiveTree(float active_page_scale);
|
| + void SetSubframePageScaleOnActiveTree(float active_subframe_page_scale);
|
| void PushPageScaleFromMainThread(float page_scale_factor,
|
| + float subframe_page_scale_factor,
|
| float min_page_scale_factor,
|
| float max_page_scale_factor);
|
| float current_page_scale_factor() const {
|
| return page_scale_factor()->Current(IsActiveTree());
|
| }
|
| + float GetSubframePageScaleFactor() const {
|
| + return subframe_page_scale_factor()->Current(IsActiveTree());
|
| + }
|
| float min_page_scale_factor() const { return min_page_scale_factor_; }
|
| float max_page_scale_factor() const { return max_page_scale_factor_; }
|
|
|
| @@ -224,6 +231,9 @@ class CC_EXPORT LayerTreeImpl {
|
| SyncedProperty<ScaleGroup>* page_scale_factor();
|
| const SyncedProperty<ScaleGroup>* page_scale_factor() const;
|
|
|
| + SyncedProperty<ScaleGroup>* subframe_page_scale_factor();
|
| + const SyncedProperty<ScaleGroup>* subframe_page_scale_factor() const;
|
| +
|
| void SetDeviceScaleFactor(float device_scale_factor);
|
| float device_scale_factor() const { return device_scale_factor_; }
|
|
|
| @@ -462,6 +472,7 @@ class CC_EXPORT LayerTreeImpl {
|
| protected:
|
| float ClampPageScaleFactorToLimits(float page_scale_factor) const;
|
| void PushPageScaleFactorAndLimits(const float* page_scale_factor,
|
| + const float* subframe_page_scale_factor,
|
| float min_page_scale_factor,
|
| float max_page_scale_factor);
|
| bool SetPageScaleFactorLimits(float min_page_scale_factor,
|
| @@ -490,6 +501,7 @@ class CC_EXPORT LayerTreeImpl {
|
| LayerSelection selection_;
|
|
|
| scoped_refptr<SyncedProperty<ScaleGroup>> page_scale_factor_;
|
| + scoped_refptr<SyncedProperty<ScaleGroup>> subframe_page_scale_factor_;
|
| float min_page_scale_factor_;
|
| float max_page_scale_factor_;
|
|
|
|
|