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

Unified Diff: ui/gfx/canvas.h

Issue 10086023: Expose array of bitmaps contained by gfx::Image similar to NSImage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer diff Created 8 years, 8 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 | « chrome/browser/web_applications/web_app_mac.mm ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index dd2e76467c69a58679f0fa2678d0148cd6750837..7653f39cec55d2796ad8bd48a9035af9c434a523 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -273,6 +273,14 @@ class UI_EXPORT Canvas {
bool filter,
const SkPaint& paint);
+ // TODO(pkotwicz): make this function private once gfx::ImageSkia stops
+ // calling this method.
+ void DrawBitmapFloat(const SkBitmap& bitmap,
+ float src_x, float src_y, float src_w, float src_h,
+ float dest_x, float dest_y, float dest_w, float dest_h,
+ bool filter,
+ const SkPaint& paint);
+
// Draws text with the specified color, font and location. The text is
// aligned to the left, vertically centered, clipped to the region. If the
// text is too big, it is truncated and '...' is added to the end.
« no previous file with comments | « chrome/browser/web_applications/web_app_mac.mm ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698