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

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

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Petrcermak + oysteine review + LayerDebugInfo refptr wrapper Created 4 years, 9 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
(...skipping 29 matching lines...) Expand all
40 #include "third_party/skia/include/core/SkImageFilter.h" 40 #include "third_party/skia/include/core/SkImageFilter.h"
41 #include "third_party/skia/include/core/SkPicture.h" 41 #include "third_party/skia/include/core/SkPicture.h"
42 #include "ui/gfx/geometry/point3_f.h" 42 #include "ui/gfx/geometry/point3_f.h"
43 #include "ui/gfx/geometry/rect.h" 43 #include "ui/gfx/geometry/rect.h"
44 #include "ui/gfx/geometry/rect_f.h" 44 #include "ui/gfx/geometry/rect_f.h"
45 #include "ui/gfx/geometry/scroll_offset.h" 45 #include "ui/gfx/geometry/scroll_offset.h"
46 #include "ui/gfx/transform.h" 46 #include "ui/gfx/transform.h"
47 47
48 namespace base { 48 namespace base {
49 namespace trace_event { 49 namespace trace_event {
50 class ConvertableToTraceFormat;
51 class TracedValue; 50 class TracedValue;
52 } 51 }
53 class DictionaryValue; 52 class DictionaryValue;
54 } 53 }
55 54
56 namespace cc { 55 namespace cc {
57 56
57 class LayerDebugInfo;
58 class LayerTreeHostImpl; 58 class LayerTreeHostImpl;
59 class LayerTreeImpl; 59 class LayerTreeImpl;
60 class MicroBenchmarkImpl; 60 class MicroBenchmarkImpl;
61 class Occlusion; 61 class Occlusion;
62 class EffectTree; 62 class EffectTree;
63 class PrioritizedTile; 63 class PrioritizedTile;
64 class RenderPass; 64 class RenderPass;
65 class RenderPassId; 65 class RenderPassId;
66 class Renderer; 66 class Renderer;
67 class ScrollbarLayerImplBase; 67 class ScrollbarLayerImplBase;
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 return needs_push_properties() || descendant_needs_push_properties(); 612 return needs_push_properties() || descendant_needs_push_properties();
613 } 613 }
614 614
615 bool needs_push_properties() const { return needs_push_properties_; } 615 bool needs_push_properties() const { return needs_push_properties_; }
616 bool descendant_needs_push_properties() const { 616 bool descendant_needs_push_properties() const {
617 return num_dependents_need_push_properties_ > 0; 617 return num_dependents_need_push_properties_ > 0;
618 } 618 }
619 619
620 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark); 620 virtual void RunMicroBenchmark(MicroBenchmarkImpl* benchmark);
621 621
622 virtual void SetDebugInfo( 622 void SetDebugInfo(scoped_refptr<LayerDebugInfo> debug_info);
623 scoped_refptr<base::trace_event::ConvertableToTraceFormat> other);
624 623
625 bool IsDrawnRenderSurfaceLayerListMember() const; 624 bool IsDrawnRenderSurfaceLayerListMember() const;
626 625
627 void Set3dSortingContextId(int id); 626 void Set3dSortingContextId(int id);
628 int sorting_context_id() { return sorting_context_id_; } 627 int sorting_context_id() { return sorting_context_id_; }
629 628
630 void SetFrameTimingRequests( 629 void SetFrameTimingRequests(
631 const std::vector<FrameTimingRequest>& frame_timing_requests); 630 const std::vector<FrameTimingRequest>& frame_timing_requests);
632 const std::vector<FrameTimingRequest>& frame_timing_requests() const { 631 const std::vector<FrameTimingRequest>& frame_timing_requests() const {
633 return frame_timing_requests_; 632 return frame_timing_requests_;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 // Manages animations for this layer. 853 // Manages animations for this layer.
855 scoped_refptr<LayerAnimationController> layer_animation_controller_; 854 scoped_refptr<LayerAnimationController> layer_animation_controller_;
856 855
857 std::vector<scoped_ptr<CopyOutputRequest>> copy_requests_; 856 std::vector<scoped_ptr<CopyOutputRequest>> copy_requests_;
858 857
859 // Group of properties that need to be computed based on the layer tree 858 // Group of properties that need to be computed based on the layer tree
860 // hierarchy before layers can be drawn. 859 // hierarchy before layers can be drawn.
861 DrawProperties draw_properties_; 860 DrawProperties draw_properties_;
862 PerformanceProperties<LayerImpl> performance_properties_; 861 PerformanceProperties<LayerImpl> performance_properties_;
863 862
864 scoped_refptr<base::trace_event::ConvertableToTraceFormat> debug_info_; 863 scoped_refptr<LayerDebugInfo> debug_info_;
865 scoped_ptr<RenderSurfaceImpl> render_surface_; 864 scoped_ptr<RenderSurfaceImpl> render_surface_;
866 865
867 bool force_render_surface_; 866 bool force_render_surface_;
868 867
869 std::vector<FrameTimingRequest> frame_timing_requests_; 868 std::vector<FrameTimingRequest> frame_timing_requests_;
870 bool frame_timing_requests_dirty_; 869 bool frame_timing_requests_dirty_;
871 bool visited_; 870 bool visited_;
872 bool layer_or_descendant_is_drawn_; 871 bool layer_or_descendant_is_drawn_;
873 // If true, the layer or one of its descendants has a touch handler. 872 // If true, the layer or one of its descendants has a touch handler.
874 bool layer_or_descendant_has_touch_handler_; 873 bool layer_or_descendant_has_touch_handler_;
875 bool sorted_for_recursion_; 874 bool sorted_for_recursion_;
876 875
877 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 876 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
878 }; 877 };
879 878
880 } // namespace cc 879 } // namespace cc
881 880
882 #endif // CC_LAYERS_LAYER_IMPL_H_ 881 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_client.h ('k') | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698