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

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, 1 month 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') | no next file with comments »
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 base::WeakPtr<InputHandler> input_handler_weak_ptr_; 439 base::WeakPtr<InputHandler> input_handler_weak_ptr_;
438 440
439 const LayerTreeSettings settings_; 441 const LayerTreeSettings settings_;
440 LayerTreeDebugState debug_state_; 442 LayerTreeDebugState debug_state_;
441 443
442 gfx::Size device_viewport_size_; 444 gfx::Size device_viewport_size_;
443 bool top_controls_shrink_blink_size_; 445 bool top_controls_shrink_blink_size_;
444 float top_controls_height_; 446 float top_controls_height_;
445 float top_controls_shown_ratio_; 447 float top_controls_shown_ratio_;
446 float device_scale_factor_; 448 float device_scale_factor_;
449 float painted_device_scale_factor_;
447 450
448 bool visible_; 451 bool visible_;
449 452
450 float page_scale_factor_; 453 float page_scale_factor_;
451 float min_page_scale_factor_; 454 float min_page_scale_factor_;
452 float max_page_scale_factor_; 455 float max_page_scale_factor_;
453 gfx::Vector2dF elastic_overscroll_; 456 gfx::Vector2dF elastic_overscroll_;
454 bool has_gpu_rasterization_trigger_; 457 bool has_gpu_rasterization_trigger_;
455 bool content_is_suitable_for_gpu_rasterization_; 458 bool content_is_suitable_for_gpu_rasterization_;
456 bool gpu_rasterization_histogram_recorded_; 459 bool gpu_rasterization_histogram_recorded_;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 496
494 uint32_t surface_id_namespace_; 497 uint32_t surface_id_namespace_;
495 uint32_t next_surface_sequence_; 498 uint32_t next_surface_sequence_;
496 499
497 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 500 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
498 }; 501 };
499 502
500 } // namespace cc 503 } // namespace cc
501 504
502 #endif // CC_TREES_LAYER_TREE_HOST_H_ 505 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698