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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 1412663005: Introduce painted-device-scale-factor and use it when --enable-use-zoom-for-dsf is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 232 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
233 bool use_anchor, 233 bool use_anchor,
234 float scale, 234 float scale,
235 base::TimeDelta duration); 235 base::TimeDelta duration);
236 236
237 void ApplyScrollAndScale(ScrollAndScaleSet* info); 237 void ApplyScrollAndScale(ScrollAndScaleSet* info);
238 void SetImplTransform(const gfx::Transform& transform); 238 void SetImplTransform(const gfx::Transform& transform);
239 239
240 void SetDeviceScaleFactor(float device_scale_factor); 240 void SetDeviceScaleFactor(float device_scale_factor);
241 void SetPaintedDeviceScaleFactor(float painted_device_scale_factor);
242
241 float device_scale_factor() const { return device_scale_factor_; } 243 float device_scale_factor() const { return device_scale_factor_; }
242 244
243 void UpdateTopControlsState(TopControlsState constraints, 245 void UpdateTopControlsState(TopControlsState constraints,
244 TopControlsState current, 246 TopControlsState current,
245 bool animate); 247 bool animate);
246 248
247 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 249 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
248 250
249 Proxy* proxy() const { return proxy_.get(); } 251 Proxy* proxy() const { return proxy_.get(); }
250 AnimationRegistrar* animation_registrar() const { 252 AnimationRegistrar* animation_registrar() const {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 438 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
437 439
438 const LayerTreeSettings settings_; 440 const LayerTreeSettings settings_;
439 LayerTreeDebugState debug_state_; 441 LayerTreeDebugState debug_state_;
440 442
441 gfx::Size device_viewport_size_; 443 gfx::Size device_viewport_size_;
442 bool top_controls_shrink_blink_size_; 444 bool top_controls_shrink_blink_size_;
443 float top_controls_height_; 445 float top_controls_height_;
444 float top_controls_shown_ratio_; 446 float top_controls_shown_ratio_;
445 float device_scale_factor_; 447 float device_scale_factor_;
448 float painted_device_scale_factor_;
446 449
447 bool visible_; 450 bool visible_;
448 451
449 float page_scale_factor_; 452 float page_scale_factor_;
450 float min_page_scale_factor_; 453 float min_page_scale_factor_;
451 float max_page_scale_factor_; 454 float max_page_scale_factor_;
452 gfx::Vector2dF elastic_overscroll_; 455 gfx::Vector2dF elastic_overscroll_;
453 bool has_gpu_rasterization_trigger_; 456 bool has_gpu_rasterization_trigger_;
454 bool content_is_suitable_for_gpu_rasterization_; 457 bool content_is_suitable_for_gpu_rasterization_;
455 bool gpu_rasterization_histogram_recorded_; 458 bool gpu_rasterization_histogram_recorded_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 495
493 uint32_t surface_id_namespace_; 496 uint32_t surface_id_namespace_;
494 uint32_t next_surface_sequence_; 497 uint32_t next_surface_sequence_;
495 498
496 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 499 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
497 }; 500 };
498 501
499 } // namespace cc 502 } // namespace cc
500 503
501 #endif // CC_TREES_LAYER_TREE_HOST_H_ 504 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | cc/trees/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698