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

Unified Diff: skia/ext/platform_canvas_linux.cc

Issue 3590011: Update use of SkCanvas and SkDevice to match change in Skia (Closed)
Patch Set: Bump deps again to bring in fix for memory leak Created 10 years, 2 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/platform_canvas.cc ('k') | skia/ext/platform_canvas_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/platform_canvas_linux.cc
diff --git a/skia/ext/platform_canvas_linux.cc b/skia/ext/platform_canvas_linux.cc
index 109b232b55dfdfaeb48c4cc0d7d416353d628d8d..5acbd147ca29fa750a272165d57d493fed21c6e0 100644
--- a/skia/ext/platform_canvas_linux.cc
+++ b/skia/ext/platform_canvas_linux.cc
@@ -12,18 +12,15 @@
namespace skia {
-PlatformCanvas::PlatformCanvas() : SkCanvas() {
-}
-
PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque)
- : SkCanvas() {
+ : SkCanvas(SkNEW(SkBitmapPlatformDeviceFactory)) {
if (!initialize(width, height, is_opaque))
SK_CRASH();
}
PlatformCanvas::PlatformCanvas(int width, int height, bool is_opaque,
uint8_t* data)
- : SkCanvas() {
+ : SkCanvas(SkNEW(SkBitmapPlatformDeviceFactory)) {
if (!initialize(width, height, is_opaque, data))
SK_CRASH();
}
@@ -50,13 +47,4 @@ void PlatformCanvas::endPlatformPaint() {
// We don't need to do anything on Linux here.
}
-SkDevice* PlatformCanvas::createDevice(SkBitmap::Config config,
- int width,
- int height,
- bool is_opaque,
- bool isForLayer) {
- SkASSERT(config == SkBitmap::kARGB_8888_Config);
- return BitmapPlatformDevice::Create(width, height, is_opaque);
-}
-
} // namespace skia
« no previous file with comments | « skia/ext/platform_canvas.cc ('k') | skia/ext/platform_canvas_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698