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

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

Issue 2795703002: ui: Add debug flag to show composited layer borders in ChromeOS UI. (Closed)
Patch Set: add debug border bitset Created 3 years, 8 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
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
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <set> 13 #include <set>
14 #include <string> 14 #include <string>
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ptr_util.h" 19 #include "base/memory/ptr_util.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "cc/base/region.h" 21 #include "cc/base/region.h"
22 #include "cc/base/synced_property.h" 22 #include "cc/base/synced_property.h"
23 #include "cc/cc_export.h" 23 #include "cc/cc_export.h"
24 #include "cc/debug/layer_tree_debug_state.h"
24 #include "cc/input/input_handler.h" 25 #include "cc/input/input_handler.h"
25 #include "cc/layers/draw_properties.h" 26 #include "cc/layers/draw_properties.h"
26 #include "cc/layers/layer_collections.h" 27 #include "cc/layers/layer_collections.h"
27 #include "cc/layers/layer_impl_test_properties.h" 28 #include "cc/layers/layer_impl_test_properties.h"
28 #include "cc/layers/layer_position_constraint.h" 29 #include "cc/layers/layer_position_constraint.h"
29 #include "cc/layers/performance_properties.h" 30 #include "cc/layers/performance_properties.h"
30 #include "cc/layers/render_surface_impl.h" 31 #include "cc/layers/render_surface_impl.h"
31 #include "cc/quads/shared_quad_state.h" 32 #include "cc/quads/shared_quad_state.h"
32 #include "cc/resources/resource_provider.h" 33 #include "cc/resources/resource_provider.h"
33 #include "cc/tiles/tile_priority.h" 34 #include "cc/tiles/tile_priority.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 return use_local_transform_for_backface_visibility_; 216 return use_local_transform_for_backface_visibility_;
216 } 217 }
217 218
218 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) { 219 void SetShouldCheckBackfaceVisibility(bool should_check_backface_visibility) {
219 should_check_backface_visibility_ = should_check_backface_visibility; 220 should_check_backface_visibility_ = should_check_backface_visibility;
220 } 221 }
221 bool should_check_backface_visibility() const { 222 bool should_check_backface_visibility() const {
222 return should_check_backface_visibility_; 223 return should_check_backface_visibility_;
223 } 224 }
224 225
225 bool ShowDebugBorders() const; 226 bool ShowDebugBorders(DebugBorderType type) const;
226 227
227 // TODO(http://crbug.com/557160): Currently SPv2 creates dummy layers for the 228 // TODO(http://crbug.com/557160): Currently SPv2 creates dummy layers for the
228 // sole purpose of representing a render surface. Once that dependency is 229 // sole purpose of representing a render surface. Once that dependency is
229 // removed, also remove dummy layers from PaintArtifactCompositor. 230 // removed, also remove dummy layers from PaintArtifactCompositor.
230 RenderSurfaceImpl* GetRenderSurface() const; 231 RenderSurfaceImpl* GetRenderSurface() const;
231 232
232 // The render surface which this layer draws into. This can be either owned by 233 // The render surface which this layer draws into. This can be either owned by
233 // the same layer or an ancestor of this layer. 234 // the same layer or an ancestor of this layer.
234 RenderSurfaceImpl* render_target(); 235 RenderSurfaceImpl* render_target();
235 const RenderSurfaceImpl* render_target() const; 236 const RenderSurfaceImpl* render_target() const;
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar 562 // the overlay scrollbars. It's set on the scroll layer (not the scrollbar
562 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation. 563 // layers) and consumed by LayerTreeImpl::PushPropertiesTo during activation.
563 bool needs_show_scrollbars_ : 1; 564 bool needs_show_scrollbars_ : 1;
564 565
565 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 566 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
566 }; 567 };
567 568
568 } // namespace cc 569 } // namespace cc
569 570
570 #endif // CC_LAYERS_LAYER_IMPL_H_ 571 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698