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

Unified Diff: skia/ext/bitmap_platform_device_cairo.cc

Issue 1009053002: Revert "Revert "add new signature so skia can rely on it (subclass of SkDevice)"" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « skia/ext/bitmap_platform_device_cairo.h ('k') | skia/ext/bitmap_platform_device_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/bitmap_platform_device_cairo.cc
diff --git a/skia/ext/bitmap_platform_device_cairo.cc b/skia/ext/bitmap_platform_device_cairo.cc
index a331bed0612ede805a9037976aeedaa8daceffd9..92a9d66e0397bfb64d9ed307189c7673f58e89bb 100644
--- a/skia/ext/bitmap_platform_device_cairo.cc
+++ b/skia/ext/bitmap_platform_device_cairo.cc
@@ -174,6 +174,13 @@ SkBaseDevice* BitmapPlatformDevice::onCreateCompatibleDevice(
info.fInfo.isOpaque());
}
+SkBaseDevice* BitmapPlatformDevice::onCreateDevice(const CreateInfo& info,
+ const SkPaint*) {
+ SkASSERT(info.fInfo.colorType() == kN32_SkColorType);
+ return BitmapPlatformDevice::Create(info.fInfo.width(), info.fInfo.height(),
+ info.fInfo.isOpaque());
+}
+
cairo_t* BitmapPlatformDevice::BeginPlatformPaint() {
LoadConfig();
cairo_surface_t* surface = cairo_get_target(cairo_);
« no previous file with comments | « skia/ext/bitmap_platform_device_cairo.h ('k') | skia/ext/bitmap_platform_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698