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

Unified Diff: skia/ext/vector_canvas.h

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_win.cc ('k') | skia/ext/vector_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_canvas.h
diff --git a/skia/ext/vector_canvas.h b/skia/ext/vector_canvas.h
index 89318324540b92387fa8f44f27f12acbb227f1f4..db098c79e675b8b56a20d605ac6b41618230f4d5 100644
--- a/skia/ext/vector_canvas.h
+++ b/skia/ext/vector_canvas.h
@@ -22,6 +22,7 @@ namespace skia {
class VectorCanvas : public PlatformCanvas {
public:
VectorCanvas();
+ explicit VectorCanvas(SkDeviceFactory* factory);
#if defined(WIN32)
VectorCanvas(HDC dc, int width, int height);
#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
@@ -39,26 +40,9 @@ class VectorCanvas : public PlatformCanvas {
#endif
virtual SkBounder* setBounder(SkBounder* bounder);
-#if defined(WIN32) || defined(__linux__) || defined(__FreeBSD__) || \
- defined(__OpenBSD__)
- virtual SkDevice* createDevice(SkBitmap::Config config,
- int width, int height,
- bool is_opaque, bool isForLayer);
-#endif
virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter);
private:
-#if defined(WIN32)
- // |shared_section| is in fact the HDC used for output. |is_opaque| is unused.
- virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque,
- HANDLE shared_section);
-#elif defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__)
- // Ownership of |context| is not transferred. |is_opaque| is unused.
- virtual SkDevice* createPlatformDevice(cairo_t* context,
- int width, int height,
- bool is_opaque);
-#endif
-
// Returns true if the top device is vector based and not bitmap based.
bool IsTopDeviceVectorial() const;
« no previous file with comments | « skia/ext/platform_canvas_win.cc ('k') | skia/ext/vector_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698