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

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

Issue 12603013: Part 10 of cc/ directory shuffles: layers (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
« no previous file with comments | « cc/contents_scaling_layer_unittest.cc ('k') | cc/delegated_renderer_layer.h » ('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 #include "cc/debug/debug_rect_history.h" 5 #include "cc/debug/debug_rect_history.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 #include "cc/layer_impl.h" 8 #include "cc/layers/layer_impl.h"
9 #include "cc/trees/damage_tracker.h" 9 #include "cc/trees/damage_tracker.h"
10 #include "cc/trees/layer_tree_host.h" 10 #include "cc/trees/layer_tree_host.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
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 void DebugRectHistory::SaveNonOccludingRects( 156 void DebugRectHistory::SaveNonOccludingRects(
157 const std::vector<gfx::Rect>& non_occluding_rects) { 157 const std::vector<gfx::Rect>& non_occluding_rects) {
158 for (size_t i = 0; i < non_occluding_rects.size(); ++i) { 158 for (size_t i = 0; i < non_occluding_rects.size(); ++i) {
159 debug_rects_.push_back( 159 debug_rects_.push_back(
160 DebugRect(NONOCCLUDING_RECT_TYPE, non_occluding_rects[i])); 160 DebugRect(NONOCCLUDING_RECT_TYPE, non_occluding_rects[i]));
161 } 161 }
162 } 162 }
163 163
164 } // namespace cc 164 } // namespace cc
OLDNEW
« no previous file with comments | « cc/contents_scaling_layer_unittest.cc ('k') | cc/delegated_renderer_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698