diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 23:02:38 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-01 23:02:38 +0000 |
commit | d0f98369e69763a2eeb7ea39097bf01ef234a39c (patch) | |
tree | 943e3e20a23e54d6de23d4007828a1d35c2bf6bf /cc/tiled_layer.cc | |
parent | 1140046f0868117776b6df7e7c99c5bf3dd23731 (diff) | |
download | chromium_src-d0f98369e69763a2eeb7ea39097bf01ef234a39c.zip chromium_src-d0f98369e69763a2eeb7ea39097bf01ef234a39c.tar.gz chromium_src-d0f98369e69763a2eeb7ea39097bf01ef234a39c.tar.bz2 |
Remove most remaining references to IntRect and FloatRect.
The remaining uses are:
- Dealing with the output of Region::rects() which gives a vector of
WebCore::IntRects.
- Using FloatRect::isExpressibleAsIntRect.
Covered by existing tests; no new behaviour.
BUG=147395
R=enne
Review URL: https://codereview.chromium.org/11275113
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165542 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/tiled_layer.cc')
-rw-r--r-- | cc/tiled_layer.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cc/tiled_layer.cc b/cc/tiled_layer.cc index fd2b4d5..ae13eeb 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()); } |