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

Unified Diff: cc/resource_update.h

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_provider_unittest.cc ('k') | cc/resource_update.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resource_update.h
diff --git a/cc/resource_update.h b/cc/resource_update.h
index 1fac43aa83c702b95c6e2ba80c6b8d0faafc5964..78f5fdf1a4eb37450e0d1d79d45db0f390624498 100644
--- a/cc/resource_update.h
+++ b/cc/resource_update.h
@@ -5,7 +5,8 @@
#ifndef CC_RESOURCE_UPDATE_H_
#define CC_RESOURCE_UPDATE_H_
-#include "IntRect.h"
+#include "ui/gfx/rect.h"
+#include "ui/gfx/vector2d.h"
class SkBitmap;
class SkPicture;
@@ -17,14 +18,14 @@ class PrioritizedTexture;
struct ResourceUpdate {
static ResourceUpdate Create(PrioritizedTexture*,
const SkBitmap*,
- IntRect content_rect,
- IntRect source_rect,
- IntSize dest_offset);
+ gfx::Rect content_rect,
+ gfx::Rect source_rect,
+ gfx::Vector2d dest_offset);
static ResourceUpdate CreateFromPicture(PrioritizedTexture*,
SkPicture*,
- IntRect content_rect,
- IntRect source_rect,
- IntSize dest_offset);
+ gfx::Rect content_rect,
+ gfx::Rect source_rect,
+ gfx::Vector2d dest_offset);
ResourceUpdate();
virtual ~ResourceUpdate();
@@ -32,9 +33,9 @@ struct ResourceUpdate {
PrioritizedTexture* texture;
const SkBitmap* bitmap;
SkPicture* picture;
- IntRect content_rect;
- IntRect source_rect;
- IntSize dest_offset;
+ gfx::Rect content_rect;
+ gfx::Rect source_rect;
+ gfx::Vector2d dest_offset;
};
}
« no previous file with comments | « cc/resource_provider_unittest.cc ('k') | cc/resource_update.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698