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

Unified Diff: ui/gfx/canvas.h

Issue 8681001: Revert 111288 - Possibly broke media_unittests on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/gfx/canvas_skia.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
===================================================================
--- ui/gfx/canvas.h (revision 111322)
+++ ui/gfx/canvas.h (working copy)
@@ -122,18 +122,20 @@
// color, using a transfer mode of SkXfermode::kSrcOver_Mode.
//
// NOTE: if you need a single pixel line, use DrawLineInt.
- virtual void DrawRect(const gfx::Rect& rect, const SkColor& color) = 0;
+ virtual void DrawRectInt(const SkColor& color,
+ int x, int y, int w, int h) = 0;
// Draws a single pixel rect in the specified region with the specified
// color and transfer mode.
//
// NOTE: if you need a single pixel line, use DrawLineInt.
- virtual void DrawRect(const gfx::Rect& rect,
- const SkColor& color,
- SkXfermode::Mode mode) = 0;
+ virtual void DrawRectInt(const SkColor& color,
+ int x, int y, int w, int h,
+ SkXfermode::Mode mode) = 0;
// Draws the given rectangle with the given paint's parameters.
- virtual void DrawRect(const gfx::Rect& rect, const SkPaint& paint) = 0;
+ virtual void DrawRectInt(int x, int y, int w, int h,
+ const SkPaint& paint) = 0;
// Draws a single pixel line with the specified color.
virtual void DrawLineInt(const SkColor& color,
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/gfx/canvas_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698