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

Side by Side Diff: cc/debug/debug_rect_history.h

Issue 13285002: cc: Consolidate LayerList types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/cc.gyp ('k') | cc/debug/debug_rect_history.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_DEBUG_DEBUG_RECT_HISTORY_H_ 5 #ifndef CC_DEBUG_DEBUG_RECT_HISTORY_H_
6 #define CC_DEBUG_DEBUG_RECT_HISTORY_H_ 6 #define CC_DEBUG_DEBUG_RECT_HISTORY_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "cc/layers/layer_lists.h"
11 #include "ui/gfx/rect.h" 12 #include "ui/gfx/rect.h"
12 #include "ui/gfx/rect_f.h" 13 #include "ui/gfx/rect_f.h"
13 14
14 namespace cc { 15 namespace cc {
15 16
16 class LayerImpl; 17 class LayerImpl;
17 class LayerTreeDebugState; 18 class LayerTreeDebugState;
18 19
19 // There are currently six types of debug rects: 20 // There are currently six types of debug rects:
20 // 21 //
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 class DebugRectHistory { 66 class DebugRectHistory {
66 public: 67 public:
67 static scoped_ptr<DebugRectHistory> Create(); 68 static scoped_ptr<DebugRectHistory> Create();
68 69
69 ~DebugRectHistory(); 70 ~DebugRectHistory();
70 71
71 // Note: Saving debug rects must happen before layers' change tracking is 72 // Note: Saving debug rects must happen before layers' change tracking is
72 // reset. 73 // reset.
73 void SaveDebugRectsForCurrentFrame( 74 void SaveDebugRectsForCurrentFrame(
74 LayerImpl* root_layer, 75 LayerImpl* root_layer,
75 const std::vector<LayerImpl*>& render_surface_layer_list, 76 const LayerImplList& render_surface_layer_list,
76 const std::vector<gfx::Rect>& occluding_screen_space_rects, 77 const std::vector<gfx::Rect>& occluding_screen_space_rects,
77 const std::vector<gfx::Rect>& non_occluding_screen_space_rects, 78 const std::vector<gfx::Rect>& non_occluding_screen_space_rects,
78 const LayerTreeDebugState& debug_state); 79 const LayerTreeDebugState& debug_state);
79 80
80 const std::vector<DebugRect>& debug_rects() { return debug_rects_; } 81 const std::vector<DebugRect>& debug_rects() { return debug_rects_; }
81 82
82 private: 83 private:
83 DebugRectHistory(); 84 DebugRectHistory();
84 85
85 void SavePaintRects(LayerImpl* layer); 86 void SavePaintRects(LayerImpl* layer);
86 void SavePropertyChangedRects( 87 void SavePropertyChangedRects(
87 const std::vector<LayerImpl*>& render_surface_layer_list); 88 const LayerImplList& render_surface_layer_list);
88 void SaveSurfaceDamageRects( 89 void SaveSurfaceDamageRects(
89 const std::vector<LayerImpl*>& render_surface_layer_list); 90 const LayerImplList& render_surface_layer_list);
90 void SaveScreenSpaceRects( 91 void SaveScreenSpaceRects(
91 const std::vector<LayerImpl*>& render_surface_layer_list); 92 const LayerImplList& render_surface_layer_list);
92 void SaveOccludingRects( 93 void SaveOccludingRects(
93 const std::vector<gfx::Rect>& occluding_screen_space_rects); 94 const std::vector<gfx::Rect>& occluding_screen_space_rects);
94 void SaveNonOccludingRects( 95 void SaveNonOccludingRects(
95 const std::vector<gfx::Rect>& non_occluding_screen_space_rects); 96 const std::vector<gfx::Rect>& non_occluding_screen_space_rects);
96 97
97 std::vector<DebugRect> debug_rects_; 98 std::vector<DebugRect> debug_rects_;
98 99
99 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory); 100 DISALLOW_COPY_AND_ASSIGN(DebugRectHistory);
100 }; 101 };
101 102
102 } // namespace cc 103 } // namespace cc
103 104
104 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_ 105 #endif // CC_DEBUG_DEBUG_RECT_HISTORY_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/debug/debug_rect_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698