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

Unified Diff: cc/image_layer.cc

Issue 11264056: cc: Use gfx:: Geometry types for positions, bounds, and related things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some missed intstuff Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/image_layer.h ('k') | cc/io_surface_layer_impl.h » ('j') | cc/layer_quad.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/image_layer.cc
diff --git a/cc/image_layer.cc b/cc/image_layer.cc
index 7b94add6c23777ca1077547e941ef99325fb4ff5..6d290447c366a81fa63a8d3d81961a589c65a9af 100644
--- a/cc/image_layer.cc
+++ b/cc/image_layer.cc
@@ -119,7 +119,7 @@ void ImageLayer::update(TextureUpdateQueue& queue, const OcclusionTracker* occlu
if (m_needsDisplay) {
m_updater->setBitmap(m_bitmap);
updateTileSizeAndTilingOption();
- invalidateContentRect(IntRect(IntPoint(), contentBounds()));
+ invalidateContentRect(gfx::Rect(gfx::Point(), contentBounds()));
m_needsDisplay = false;
}
TiledLayer::update(queue, occlusion, stats);
@@ -140,9 +140,9 @@ LayerUpdater* ImageLayer::updater() const
return m_updater.get();
}
-IntSize ImageLayer::contentBounds() const
+gfx::Size ImageLayer::contentBounds() const
{
- return IntSize(m_bitmap.width(), m_bitmap.height());
+ return gfx::Size(m_bitmap.width(), m_bitmap.height());
}
bool ImageLayer::drawsContent() const
« no previous file with comments | « cc/image_layer.h ('k') | cc/io_surface_layer_impl.h » ('j') | cc/layer_quad.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698