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

Side by Side Diff: cc/CCDebugRectHistory.h

Issue 10947047: Fix remaining cc files to compile with Clang (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix FakeCCDelayBasedTimeSource Created 8 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/CCAnimationCurve.cpp ('k') | cc/CCDebugRectHistory.cpp » ('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 CCDebugRectHistory_h 5 #ifndef CCDebugRectHistory_h
6 #define CCDebugRectHistory_h 6 #define CCDebugRectHistory_h
7 7
8 #if USE(ACCELERATED_COMPOSITING) 8 #if USE(ACCELERATED_COMPOSITING)
9 9
10 #include "FloatRect.h" 10 #include "FloatRect.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // for debugging purposes. The overhead of collecting rects is performed only if 52 // for debugging purposes. The overhead of collecting rects is performed only if
53 // the appropriate CCLayerTreeSettings are enabled. 53 // the appropriate CCLayerTreeSettings are enabled.
54 class CCDebugRectHistory { 54 class CCDebugRectHistory {
55 WTF_MAKE_NONCOPYABLE(CCDebugRectHistory); 55 WTF_MAKE_NONCOPYABLE(CCDebugRectHistory);
56 public: 56 public:
57 static PassOwnPtr<CCDebugRectHistory> create() 57 static PassOwnPtr<CCDebugRectHistory> create()
58 { 58 {
59 return adoptPtr(new CCDebugRectHistory()); 59 return adoptPtr(new CCDebugRectHistory());
60 } 60 }
61 61
62 ~CCDebugRectHistory();
63
62 // Note: Saving debug rects must happen before layers' change tracking is re set. 64 // Note: Saving debug rects must happen before layers' change tracking is re set.
63 void saveDebugRectsForCurrentFrame(CCLayerImpl* rootLayer, const Vector<CCLa yerImpl*>& renderSurfaceLayerList, const Vector<IntRect>& occludingScreenSpaceRe cts, const CCLayerTreeSettings&); 65 void saveDebugRectsForCurrentFrame(CCLayerImpl* rootLayer, const Vector<CCLa yerImpl*>& renderSurfaceLayerList, const Vector<IntRect>& occludingScreenSpaceRe cts, const CCLayerTreeSettings&);
64 66
65 const Vector<CCDebugRect>& debugRects() { return m_debugRects; } 67 const Vector<CCDebugRect>& debugRects() { return m_debugRects; }
66 68
67 private: 69 private:
68 CCDebugRectHistory(); 70 CCDebugRectHistory();
69 71
70 void savePaintRects(CCLayerImpl*); 72 void savePaintRects(CCLayerImpl*);
71 void savePropertyChangedRects(const Vector<CCLayerImpl*>& renderSurfaceLayer List); 73 void savePropertyChangedRects(const Vector<CCLayerImpl*>& renderSurfaceLayer List);
72 void saveSurfaceDamageRects(const Vector<CCLayerImpl* >& renderSurfaceLayerL ist); 74 void saveSurfaceDamageRects(const Vector<CCLayerImpl* >& renderSurfaceLayerL ist);
73 void saveScreenSpaceRects(const Vector<CCLayerImpl* >& renderSurfaceLayerLis t); 75 void saveScreenSpaceRects(const Vector<CCLayerImpl* >& renderSurfaceLayerLis t);
74 void saveOccludingRects(const Vector<IntRect>& occludingScreenSpaceRects); 76 void saveOccludingRects(const Vector<IntRect>& occludingScreenSpaceRects);
75 77
76 Vector<CCDebugRect> m_debugRects; 78 Vector<CCDebugRect> m_debugRects;
77 }; 79 };
78 80
79 } // namespace cc 81 } // namespace cc
80 82
81 #endif // USE(ACCELERATED_COMPOSITING) 83 #endif // USE(ACCELERATED_COMPOSITING)
82 84
83 #endif 85 #endif
OLDNEW
« no previous file with comments | « cc/CCAnimationCurve.cpp ('k') | cc/CCDebugRectHistory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698