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

Side by Side Diff: cc/debug_rect_history.cc

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 #include "cc/debug_rect_history.h" 5 #include "cc/debug_rect_history.h"
6 6
7 #include "cc/base/math_util.h"
7 #include "cc/damage_tracker.h" 8 #include "cc/damage_tracker.h"
8 #include "cc/layer_impl.h" 9 #include "cc/layer_impl.h"
9 #include "cc/layer_tree_host.h" 10 #include "cc/layer_tree_host.h"
10 #include "cc/math_util.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 // static 14 // static
15 scoped_ptr<DebugRectHistory> DebugRectHistory::create() { 15 scoped_ptr<DebugRectHistory> DebugRectHistory::create() {
16 return make_scoped_ptr(new DebugRectHistory()); 16 return make_scoped_ptr(new DebugRectHistory());
17 } 17 }
18 18
19 DebugRectHistory::DebugRectHistory() 19 DebugRectHistory::DebugRectHistory()
20 { 20 {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 m_debugRects.push_back(DebugRect(OccludingRectType, occludingRects[i])); 121 m_debugRects.push_back(DebugRect(OccludingRectType, occludingRects[i]));
122 } 122 }
123 123
124 void DebugRectHistory::saveNonOccludingRects(const std::vector<gfx::Rect>& nonOc cludingRects) 124 void DebugRectHistory::saveNonOccludingRects(const std::vector<gfx::Rect>& nonOc cludingRects)
125 { 125 {
126 for (size_t i = 0; i < nonOccludingRects.size(); ++i) 126 for (size_t i = 0; i < nonOccludingRects.size(); ++i)
127 m_debugRects.push_back(DebugRect(NonOccludingRectType, nonOccludingRects [i])); 127 m_debugRects.push_back(DebugRect(NonOccludingRectType, nonOccludingRects [i]));
128 } 128 }
129 129
130 } // namespace cc 130 } // namespace cc
OLDNEW
« cc/cc.gyp ('K') | « cc/debug_border_draw_quad.h ('k') | cc/delay_based_time_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698