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

Unified Diff: include/core/SkDevice.h

Issue 154163002: remove SkCanvas::createCompatibleDevice, and add SkCanvas::newSurface (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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
Index: include/core/SkDevice.h
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 250a6a3d560c56668ba414746374e7226e76a736..7c83f448d44a76dfa896e9258633ae31fe914143 100644
--- a/include/core/SkDevice.h
+++ b/include/core/SkDevice.h
@@ -367,6 +367,9 @@ protected:
static const SkCanvas::Config8888 kPMColorAlias;
protected:
+ // default impl returns NULL
+ virtual SkSurface* newSurface(const SkImageInfo&);
+
/**
* Leaky properties are those which the device should be applying but it isn't.
* These properties will be applied by the draw, when and as it can.
@@ -382,6 +385,7 @@ private:
friend class SkDrawIter;
friend class SkDeviceFilteredPaint;
friend class SkDeviceImageFilterProxy;
+ friend class DeferredDevice; // for newSurface
friend class SkSurface_Raster;

Powered by Google App Engine
This is Rietveld 408576698