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

Unified Diff: ui/gfx/canvas.h

Issue 2682123003: Remove uses of skia::ReadPixels(PaintCanvas) (Closed)
Patch Set: more readpixels Created 3 years, 10 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 | « content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc ('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 9303fb2d55eedbfbb175d4d450c8b674482d50d1..bb2a90e13934f9bf653e9cb85b50dba90b266402 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -471,6 +471,8 @@ class GFX_EXPORT Canvas {
const Rect& display_rect,
int flags);
+ SkBitmap ToBitmap();
+
// TODO(enne): rename sk_canvas members and interface.
cc::PaintCanvas* sk_canvas() { return canvas_; }
float image_scale() const { return image_scale_; }
« no previous file with comments | « content/renderer/pepper/plugin_instance_throttler_impl_unittest.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698