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

Unified Diff: cc/tiled_layer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/texture_layer_unittest.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiled_layer.cc
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc
index fd2b4d5e5ede902de1043047ca8fc549b7ec9714..ae13eeb6696890566dfe6588001046fc46d5627a 100644
--- a/cc/tiled_layer.cc
+++ b/cc/tiled_layer.cc
@@ -148,9 +148,9 @@ void TiledLayer::updateBounds()
m_tiler->setBounds(newBounds);
// Invalidate any areas that the new bounds exposes.
- Region oldRegion = IntRect(IntPoint(), cc::IntSize(oldBounds));
- Region newRegion = IntRect(IntPoint(), cc::IntSize(newBounds));
- newRegion.subtract(oldRegion);
+ Region oldRegion = gfx::Rect(gfx::Point(), oldBounds);
+ Region newRegion = gfx::Rect(gfx::Point(), newBounds);
+ newRegion.Subtract(oldRegion);
Vector<WebCore::IntRect> rects = newRegion.rects();
for (size_t i = 0; i < rects.size(); ++i)
invalidateContentRect(cc::IntRect(rects[i]));
@@ -329,7 +329,7 @@ bool TiledLayer::updateTiles(int left, int top, int right, int bottom, ResourceU
gfx::Rect paintRect = markTilesForUpdate(left, top, right, bottom, ignoreOcclusions);
if (occlusion)
- occlusion->overdrawMetrics().didPaint(cc::IntRect(paintRect));
+ occlusion->overdrawMetrics().didPaint(paintRect);
if (paintRect.IsEmpty())
return true;
@@ -510,7 +510,7 @@ void TiledLayer::updateTileTextures(const gfx::Rect& paintRect, int left, int to
tile->updaterResource()->update(queue, sourceRect, destOffset, tile->partialUpdate, stats);
if (occlusion)
- occlusion->overdrawMetrics().didUpload(WebTransformationMatrix(), cc::IntRect(sourceRect), cc::IntRect(tile->opaqueRect()));
+ occlusion->overdrawMetrics().didUpload(WebTransformationMatrix(), sourceRect, tile->opaqueRect());
}
}
@@ -592,7 +592,7 @@ Region TiledLayer::visibleContentOpaqueRegion() const
if (m_skipsDraw)
return Region();
if (contentsOpaque())
- return cc::IntRect(visibleContentRect());
+ return visibleContentRect();
return m_tiler->opaqueRegionInContentRect(visibleContentRect());
}
« no previous file with comments | « cc/texture_layer_unittest.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698