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

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

Issue 22313011: (not for review) Add overhang resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_wrap_mode
Patch Set: Created 7 years, 4 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 | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; 262 ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
263 263
264 size_t memory_allocation_limit_bytes() const; 264 size_t memory_allocation_limit_bytes() const;
265 265
266 void SetViewportSize(gfx::Size device_viewport_size); 266 void SetViewportSize(gfx::Size device_viewport_size);
267 gfx::Size device_viewport_size() const { return device_viewport_size_; } 267 gfx::Size device_viewport_size() const { return device_viewport_size_; }
268 268
269 void SetOverdrawBottomHeight(float overdraw_bottom_height); 269 void SetOverdrawBottomHeight(float overdraw_bottom_height);
270 float overdraw_bottom_height() const { return overdraw_bottom_height_; } 270 float overdraw_bottom_height() const { return overdraw_bottom_height_; }
271 271
272 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id,
273 gfx::Size overhang_image_size);
274
272 void SetDeviceScaleFactor(float device_scale_factor); 275 void SetDeviceScaleFactor(float device_scale_factor);
273 float device_scale_factor() const { return device_scale_factor_; } 276 float device_scale_factor() const { return device_scale_factor_; }
274 277
275 const gfx::Transform& DeviceTransform() const; 278 const gfx::Transform& DeviceTransform() const;
276 279
277 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); 280 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
278 281
279 bool needs_animate_layers() const { 282 bool needs_animate_layers() const {
280 return !animation_registrar_->active_animation_controllers().empty(); 283 return !animation_registrar_->active_animation_controllers().empty();
281 } 284 }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // Conversion factor from CSS pixels to physical pixels when 530 // Conversion factor from CSS pixels to physical pixels when
528 // pageScaleFactor=1. 531 // pageScaleFactor=1.
529 float device_scale_factor_; 532 float device_scale_factor_;
530 533
531 // Vertical amount of the viewport size that's known to covered by a 534 // Vertical amount of the viewport size that's known to covered by a
532 // browser-side UI element, such as an on-screen-keyboard. This affects 535 // browser-side UI element, such as an on-screen-keyboard. This affects
533 // scrollable size since we want to still be able to scroll to the bottom of 536 // scrollable size since we want to still be able to scroll to the bottom of
534 // the page when the keyboard is up. 537 // the page when the keyboard is up.
535 float overdraw_bottom_height_; 538 float overdraw_bottom_height_;
536 539
540 UIResourceId overhang_ui_resource_id_;
541 gfx::Size overhang_image_size_;
542
537 // Optional top-level constraints that can be set by the OutputSurface. The 543 // Optional top-level constraints that can be set by the OutputSurface. The
538 // external_viewport_'s size takes precedence over device_viewport_size_ for 544 // external_viewport_'s size takes precedence over device_viewport_size_ for
539 // DrawQuad generation and Renderer; however, device_viewport_size_ is still 545 // DrawQuad generation and Renderer; however, device_viewport_size_ is still
540 // used for scrollable size. 546 // used for scrollable size.
541 gfx::Transform external_transform_; 547 gfx::Transform external_transform_;
542 gfx::Rect external_viewport_; 548 gfx::Rect external_viewport_;
543 bool external_stencil_test_enabled_; 549 bool external_stencil_test_enabled_;
544 550
545 gfx::Rect viewport_damage_rect_; 551 gfx::Rect viewport_damage_rect_;
546 552
547 base::TimeTicks current_frame_timeticks_; 553 base::TimeTicks current_frame_timeticks_;
548 base::Time current_frame_time_; 554 base::Time current_frame_time_;
549 555
550 scoped_ptr<AnimationRegistrar> animation_registrar_; 556 scoped_ptr<AnimationRegistrar> animation_registrar_;
551 557
552 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 558 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
553 559
554 bool need_to_update_visible_tiles_before_draw_; 560 bool need_to_update_visible_tiles_before_draw_;
555 561
556 // Optional callback to notify of new tree activations. 562 // Optional callback to notify of new tree activations.
557 base::Closure tree_activation_callback_; 563 base::Closure tree_activation_callback_;
558 564
559 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 565 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
560 }; 566 };
561 567
562 } // namespace cc 568 } // namespace cc
563 569
564 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 570 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698