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

Unified Diff: ui/gfx/skia_util.cc

Issue 8476019: ui/gfx: Convert Canvas::DrawRectInt() to use gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland - WHAT HERE could have broken media_unittests???? Created 9 years, 1 month 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 | « ui/gfx/skia_util.h ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/skia_util.cc
diff --git a/ui/gfx/skia_util.cc b/ui/gfx/skia_util.cc
index b0f3bd176bc517e1bba4ade69f0adc76bb3bcc17..320fd6b43202cbfe877546157802043c35fc3c42 100644
--- a/ui/gfx/skia_util.cc
+++ b/ui/gfx/skia_util.cc
@@ -20,6 +20,11 @@ SkRect RectToSkRect(const gfx::Rect& rect) {
return r;
}
+SkIRect RectToSkIRect(const gfx::Rect& rect) {
+ SkIRect r = { rect.x(), rect.y(), rect.right(), rect.bottom() };
+ return r;
+}
+
gfx::Rect SkRectToRect(const SkRect& rect) {
return gfx::Rect(static_cast<int>(rect.fLeft),
static_cast<int>(rect.fTop),
« no previous file with comments | « ui/gfx/skia_util.h ('k') | ui/views/touchui/touch_selection_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698