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

Unified Diff: ui/gfx/image/canvas_image_source.cc

Issue 2796683002: Remove ExtractImageRep usage in CanvasImageSource. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/canvas_image_source.cc
diff --git a/ui/gfx/image/canvas_image_source.cc b/ui/gfx/image/canvas_image_source.cc
index e53257fe0d658342f194ead104d52c6354c399c7..728977c0ef324ff71472af97241046d7cf73caa3 100644
--- a/ui/gfx/image/canvas_image_source.cc
+++ b/ui/gfx/image/canvas_image_source.cc
@@ -21,7 +21,7 @@ CanvasImageSource::CanvasImageSource(const gfx::Size& size, bool is_opaque)
gfx::ImageSkiaRep CanvasImageSource::GetImageForScale(float scale) {
gfx::Canvas canvas(size_, scale, is_opaque_);
Draw(&canvas);
- return canvas.ExtractImageRep();
+ return gfx::ImageSkiaRep(canvas.GetBitmap(), scale);
}
} // namespace gfx
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698