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

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

Issue 23805002: [cc] Enable specifying a overhang/gutter texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 7 years, 3 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 | Annotate | Revision Log
« 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; 271 ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
272 272
273 size_t memory_allocation_limit_bytes() const; 273 size_t memory_allocation_limit_bytes() const;
274 274
275 void SetViewportSize(gfx::Size device_viewport_size); 275 void SetViewportSize(gfx::Size device_viewport_size);
276 gfx::Size device_viewport_size() const { return device_viewport_size_; } 276 gfx::Size device_viewport_size() const { return device_viewport_size_; }
277 277
278 void SetOverdrawBottomHeight(float overdraw_bottom_height); 278 void SetOverdrawBottomHeight(float overdraw_bottom_height);
279 float overdraw_bottom_height() const { return overdraw_bottom_height_; } 279 float overdraw_bottom_height() const { return overdraw_bottom_height_; }
280 280
281 void SetOverhangUIResource(UIResourceId overhang_ui_resource_id,
282 gfx::Size overhang_ui_resource_size);
283
281 void SetDeviceScaleFactor(float device_scale_factor); 284 void SetDeviceScaleFactor(float device_scale_factor);
282 float device_scale_factor() const { return device_scale_factor_; } 285 float device_scale_factor() const { return device_scale_factor_; }
283 286
284 const gfx::Transform& DeviceTransform() const; 287 const gfx::Transform& DeviceTransform() const;
285 288
286 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); 289 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
287 290
288 bool needs_animate_layers() const { 291 bool needs_animate_layers() const {
289 return !animation_registrar_->active_animation_controllers().empty(); 292 return !animation_registrar_->active_animation_controllers().empty();
290 } 293 }
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 size_t last_sent_memory_use_bytes_; 535 size_t last_sent_memory_use_bytes_;
533 bool zero_budget_; 536 bool zero_budget_;
534 537
535 // Viewport size passed in from the main thread, in physical pixels. 538 // Viewport size passed in from the main thread, in physical pixels.
536 gfx::Size device_viewport_size_; 539 gfx::Size device_viewport_size_;
537 540
538 // Conversion factor from CSS pixels to physical pixels when 541 // Conversion factor from CSS pixels to physical pixels when
539 // pageScaleFactor=1. 542 // pageScaleFactor=1.
540 float device_scale_factor_; 543 float device_scale_factor_;
541 544
545 // UI resource to use for drawing overhang gutters.
546 UIResourceId overhang_ui_resource_id_;
547 gfx::Size overhang_ui_resource_size_;
548
542 // Vertical amount of the viewport size that's known to covered by a 549 // Vertical amount of the viewport size that's known to covered by a
543 // browser-side UI element, such as an on-screen-keyboard. This affects 550 // browser-side UI element, such as an on-screen-keyboard. This affects
544 // scrollable size since we want to still be able to scroll to the bottom of 551 // scrollable size since we want to still be able to scroll to the bottom of
545 // the page when the keyboard is up. 552 // the page when the keyboard is up.
546 float overdraw_bottom_height_; 553 float overdraw_bottom_height_;
547 554
548 // Optional top-level constraints that can be set by the OutputSurface. The 555 // Optional top-level constraints that can be set by the OutputSurface. The
549 // external_viewport_'s size takes precedence over device_viewport_size_ for 556 // external_viewport_'s size takes precedence over device_viewport_size_ for
550 // DrawQuad generation and Renderer; however, device_viewport_size_ is still 557 // DrawQuad generation and Renderer; however, device_viewport_size_ is still
551 // used for scrollable size. 558 // used for scrollable size.
(...skipping 14 matching lines...) Expand all
566 573
567 // Optional callback to notify of new tree activations. 574 // Optional callback to notify of new tree activations.
568 base::Closure tree_activation_callback_; 575 base::Closure tree_activation_callback_;
569 576
570 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 577 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
571 }; 578 };
572 579
573 } // namespace cc 580 } // namespace cc
574 581
575 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 582 #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