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

Unified Diff: ui/gfx/skia_util.h

Issue 11275089: SkRect to gfx::Rect type conversions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove unnecessary lines 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
Index: ui/gfx/skia_util.h
diff --git a/ui/gfx/skia_util.h b/ui/gfx/skia_util.h
index f9e95a0c795076d3262e9cf450964a5c59ac7c71..c89ad96553b8cda0e463481665ba1aa45e4f3757 100644
--- a/ui/gfx/skia_util.h
+++ b/ui/gfx/skia_util.h
@@ -21,12 +21,16 @@ namespace gfx {
class ImageSkiaRep;
class Rect;
+class RectF;
class ShadowValue;
// Convert between Skia and gfx rect types.
UI_EXPORT SkRect RectToSkRect(const gfx::Rect& rect);
+UI_EXPORT SkRect RectFToSkRect(const gfx::RectF& rect);
UI_EXPORT SkIRect RectToSkIRect(const gfx::Rect& rect);
-UI_EXPORT gfx::Rect SkRectToRect(const SkRect& rect);
+UI_EXPORT gfx::Rect SkIRectToRect(const SkIRect& rect);
+UI_EXPORT gfx::RectF SkIRectToRectF(const SkIRect& rect);
+UI_EXPORT gfx::RectF SkRectToRectF(const SkRect& rect);
// Creates a bitmap shader for the image rep with the image rep's scale factor.
// Sets the created shader's local matrix such that it displays the image rep at

Powered by Google App Engine
This is Rietveld 408576698