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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1642093002: Purge the ScrollBlocksOn code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android build failures Created 4 years, 10 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/layers/layer.cc ('k') | cc/layers/layer_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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "cc/base/cc_export.h" 24 #include "cc/base/cc_export.h"
25 #include "cc/base/region.h" 25 #include "cc/base/region.h"
26 #include "cc/base/synced_property.h" 26 #include "cc/base/synced_property.h"
27 #include "cc/debug/frame_timing_request.h" 27 #include "cc/debug/frame_timing_request.h"
28 #include "cc/input/input_handler.h" 28 #include "cc/input/input_handler.h"
29 #include "cc/layers/draw_properties.h" 29 #include "cc/layers/draw_properties.h"
30 #include "cc/layers/layer_lists.h" 30 #include "cc/layers/layer_lists.h"
31 #include "cc/layers/layer_position_constraint.h" 31 #include "cc/layers/layer_position_constraint.h"
32 #include "cc/layers/performance_properties.h" 32 #include "cc/layers/performance_properties.h"
33 #include "cc/layers/render_surface_impl.h" 33 #include "cc/layers/render_surface_impl.h"
34 #include "cc/layers/scroll_blocks_on.h"
35 #include "cc/output/filter_operations.h" 34 #include "cc/output/filter_operations.h"
36 #include "cc/quads/shared_quad_state.h" 35 #include "cc/quads/shared_quad_state.h"
37 #include "cc/resources/resource_provider.h" 36 #include "cc/resources/resource_provider.h"
38 #include "cc/tiles/tile_priority.h" 37 #include "cc/tiles/tile_priority.h"
39 #include "skia/ext/refptr.h" 38 #include "skia/ext/refptr.h"
40 #include "third_party/skia/include/core/SkColor.h" 39 #include "third_party/skia/include/core/SkColor.h"
41 #include "third_party/skia/include/core/SkImageFilter.h" 40 #include "third_party/skia/include/core/SkImageFilter.h"
42 #include "third_party/skia/include/core/SkPicture.h" 41 #include "third_party/skia/include/core/SkPicture.h"
43 #include "ui/gfx/geometry/point3_f.h" 42 #include "ui/gfx/geometry/point3_f.h"
44 #include "ui/gfx/geometry/rect.h" 43 #include "ui/gfx/geometry/rect.h"
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 return non_fast_scrollable_region_; 522 return non_fast_scrollable_region_;
524 } 523 }
525 524
526 void SetTouchEventHandlerRegion(const Region& region) { 525 void SetTouchEventHandlerRegion(const Region& region) {
527 touch_event_handler_region_ = region; 526 touch_event_handler_region_ = region;
528 } 527 }
529 const Region& touch_event_handler_region() const { 528 const Region& touch_event_handler_region() const {
530 return touch_event_handler_region_; 529 return touch_event_handler_region_;
531 } 530 }
532 531
533 void SetScrollBlocksOn(ScrollBlocksOn scroll_blocks_on) {
534 scroll_blocks_on_ = scroll_blocks_on;
535 }
536 ScrollBlocksOn scroll_blocks_on() const { return scroll_blocks_on_; }
537
538 InputHandler::ScrollStatus TryScroll( 532 InputHandler::ScrollStatus TryScroll(
539 const gfx::PointF& screen_space_point, 533 const gfx::PointF& screen_space_point,
540 InputHandler::ScrollInputType type, 534 InputHandler::ScrollInputType type) const;
541 ScrollBlocksOn effective_block_mode) const;
542 535
543 void SetDoubleSided(bool double_sided); 536 void SetDoubleSided(bool double_sided);
544 bool double_sided() const { return double_sided_; } 537 bool double_sided() const { return double_sided_; }
545 538
546 void SetTransform(const gfx::Transform& transform); 539 void SetTransform(const gfx::Transform& transform);
547 const gfx::Transform& transform() const { return transform_; } 540 const gfx::Transform& transform() const { return transform_; }
548 bool TransformIsAnimating() const; 541 bool TransformIsAnimating() const;
549 bool HasPotentiallyRunningTransformAnimation() const; 542 bool HasPotentiallyRunningTransformAnimation() const;
550 bool TransformIsAnimatingOnImplOnly() const; 543 bool TransformIsAnimatingOnImplOnly() const;
551 bool HasOnlyTranslationTransforms() const; 544 bool HasOnlyTranslationTransforms() const;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 // Properties synchronized from the associated Layer. 762 // Properties synchronized from the associated Layer.
770 gfx::Point3F transform_origin_; 763 gfx::Point3F transform_origin_;
771 gfx::Size bounds_; 764 gfx::Size bounds_;
772 int scroll_clip_layer_id_; 765 int scroll_clip_layer_id_;
773 766
774 gfx::Vector2dF offset_to_transform_parent_; 767 gfx::Vector2dF offset_to_transform_parent_;
775 uint32_t main_thread_scrolling_reasons_; 768 uint32_t main_thread_scrolling_reasons_;
776 bool have_wheel_event_handlers_ : 1; 769 bool have_wheel_event_handlers_ : 1;
777 bool have_scroll_event_handlers_ : 1; 770 bool have_scroll_event_handlers_ : 1;
778 771
779 static_assert(SCROLL_BLOCKS_ON_MAX < (1 << 3), "ScrollBlocksOn too big");
780 ScrollBlocksOn scroll_blocks_on_ : 3;
781
782 bool user_scrollable_horizontal_ : 1; 772 bool user_scrollable_horizontal_ : 1;
783 bool user_scrollable_vertical_ : 1; 773 bool user_scrollable_vertical_ : 1;
784 bool stacking_order_changed_ : 1; 774 bool stacking_order_changed_ : 1;
785 // Whether the "back" of this layer should draw. 775 // Whether the "back" of this layer should draw.
786 bool double_sided_ : 1; 776 bool double_sided_ : 1;
787 bool should_flatten_transform_ : 1; 777 bool should_flatten_transform_ : 1;
788 bool should_flatten_transform_from_property_tree_ : 1; 778 bool should_flatten_transform_from_property_tree_ : 1;
789 779
790 // Tracks if drawing-related properties have changed since last redraw. 780 // Tracks if drawing-related properties have changed since last redraw.
791 bool layer_property_changed_ : 1; 781 bool layer_property_changed_ : 1;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 // If true, the layer or one of its descendants has a wheel or touch handler. 884 // If true, the layer or one of its descendants has a wheel or touch handler.
895 bool layer_or_descendant_has_input_handler_; 885 bool layer_or_descendant_has_input_handler_;
896 bool sorted_for_recursion_; 886 bool sorted_for_recursion_;
897 887
898 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 888 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
899 }; 889 };
900 890
901 } // namespace cc 891 } // namespace cc
902 892
903 #endif // CC_LAYERS_LAYER_IMPL_H_ 893 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698