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

Unified Diff: cc/resource_update.cc

Issue 11266030: Use gfx:: Geometry types for the resource provider and layer updater classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: uint8 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/resource_update.h ('k') | cc/resource_update_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_update.cc
diff --git a/cc/resource_update.cc b/cc/resource_update.cc
index c31e7bed9554f309e227d5efb1a9424a5d05e063..b50e36c06b7a31356ef7539c154344d89c02858b 100644
--- a/cc/resource_update.cc
+++ b/cc/resource_update.cc
@@ -12,10 +12,10 @@ namespace cc {
ResourceUpdate ResourceUpdate::Create(PrioritizedTexture* texture,
const SkBitmap* bitmap,
- IntRect content_rect,
- IntRect source_rect,
- IntSize dest_offset) {
- CHECK(content_rect.contains(source_rect));
+ gfx::Rect content_rect,
+ gfx::Rect source_rect,
+ gfx::Vector2d dest_offset) {
+ CHECK(content_rect.Contains(source_rect));
ResourceUpdate update;
update.texture = texture;
update.bitmap = bitmap;
@@ -27,10 +27,10 @@ ResourceUpdate ResourceUpdate::Create(PrioritizedTexture* texture,
ResourceUpdate ResourceUpdate::CreateFromPicture(PrioritizedTexture* texture,
SkPicture* picture,
- IntRect content_rect,
- IntRect source_rect,
- IntSize dest_offset) {
- CHECK(content_rect.contains(source_rect));
+ gfx::Rect content_rect,
+ gfx::Rect source_rect,
+ gfx::Vector2d dest_offset) {
+ CHECK(content_rect.Contains(source_rect));
ResourceUpdate update;
update.texture = texture;
update.picture = picture;
« no previous file with comments | « cc/resource_update.h ('k') | cc/resource_update_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698