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

Side by Side Diff: cc/debug_rect_history.cc

Issue 11275113: Remove most remaining references to IntRect and FloatRect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compositor bindings Created 8 years, 1 month 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/damage_tracker.cc ('k') | cc/delegated_renderer_layer_impl.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 #include "config.h" 5 #include "config.h"
6 6
7 #include "cc/debug_rect_history.h" 7 #include "cc/debug_rect_history.h"
8 8
9 #include "cc/damage_tracker.h" 9 #include "cc/damage_tracker.h"
10 #include "cc/layer_impl.h" 10 #include "cc/layer_impl.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 m_debugRects.push_back(DebugRect(ScreenSpaceRectType, MathUtil::mapClipp edRect(renderSurface->screenSpaceTransform(), renderSurface->contentRect()))); 110 m_debugRects.push_back(DebugRect(ScreenSpaceRectType, MathUtil::mapClipp edRect(renderSurface->screenSpaceTransform(), renderSurface->contentRect())));
111 111
112 if (renderSurfaceLayer->replicaLayer()) 112 if (renderSurfaceLayer->replicaLayer())
113 m_debugRects.push_back(DebugRect(ReplicaScreenSpaceRectType, MathUti l::mapClippedRect(renderSurface->replicaScreenSpaceTransform(), renderSurface->c ontentRect()))); 113 m_debugRects.push_back(DebugRect(ReplicaScreenSpaceRectType, MathUti l::mapClippedRect(renderSurface->replicaScreenSpaceTransform(), renderSurface->c ontentRect())));
114 } 114 }
115 } 115 }
116 116
117 void DebugRectHistory::saveOccludingRects(const std::vector<gfx::Rect>& occludin gRects) 117 void DebugRectHistory::saveOccludingRects(const std::vector<gfx::Rect>& occludin gRects)
118 { 118 {
119 for (size_t i = 0; i < occludingRects.size(); ++i) 119 for (size_t i = 0; i < occludingRects.size(); ++i)
120 m_debugRects.push_back(DebugRect(OccludingRectType, cc::FloatRect(occlud ingRects[i]))); 120 m_debugRects.push_back(DebugRect(OccludingRectType, occludingRects[i]));
121 } 121 }
122 122
123 } // namespace cc 123 } // namespace cc
OLDNEW
« no previous file with comments | « cc/damage_tracker.cc ('k') | cc/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698