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

Unified Diff: skia/ext/platform_canvas_mac.cc

Issue 126140: Properly use data when creating a bitmap platform canvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « skia/ext/bitmap_platform_device_mac.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas_mac.cc
===================================================================
--- skia/ext/platform_canvas_mac.cc (revision 18385)
+++ skia/ext/platform_canvas_mac.cc (working copy)
@@ -40,8 +40,8 @@
int height,
bool is_opaque,
uint8_t* data) {
- SkDevice* device = BitmapPlatformDevice::Create(NULL, width, height,
- is_opaque);
+ SkDevice* device = BitmapPlatformDevice::CreateWithData(data, width, height,
+ is_opaque);
if (!device)
return false;
@@ -63,7 +63,8 @@
int height,
bool is_opaque, bool isForLayer) {
SkASSERT(config == SkBitmap::kARGB_8888_Config);
- return BitmapPlatformDevice::Create(NULL, width, height, is_opaque);
+ return BitmapPlatformDevice::CreateWithContext(NULL, width, height,
+ is_opaque);
}
} // namespace skia
« no previous file with comments | « skia/ext/bitmap_platform_device_mac.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698