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

Unified Diff: chrome/renderer/chrome_ppb_pdf_impl.cc

Issue 8541001: Use SkCanvs::writePixels instead of deprecated SkDevice::writePixels. (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_ppb_pdf_impl.cc
===================================================================
--- chrome/renderer/chrome_ppb_pdf_impl.cc (revision 109621)
+++ chrome/renderer/chrome_ppb_pdf_impl.cc (working copy)
@@ -178,7 +178,7 @@
skia::PlatformCanvas* canvas = image_data->mapped_canvas();
// Note: Do not skBitmap::copyTo the canvas bitmap directly because it will
// ignore the allocated pixels in shared memory and re-allocate a new buffer.
- skia::GetTopDevice(*canvas)->writePixels(*res_bitmap, 0, 0);
+ canvas->writePixels(*res_bitmap, 0, 0);
return image_data->GetReference();
}
« 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