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

Unified Diff: skia/ext/vector_platform_device_skia.h

Issue 7633040: CL removing inheritance of SkDevice from PlatformDevice. Flavours of PlatformDevice classes now ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix use of drawSprite. Created 9 years, 4 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: skia/ext/vector_platform_device_skia.h
===================================================================
--- skia/ext/vector_platform_device_skia.h (revision 96545)
+++ skia/ext/vector_platform_device_skia.h (working copy)
@@ -27,7 +27,9 @@
SK_API VectorPlatformDeviceSkia(SkPDFDevice* pdf_device);
virtual ~VectorPlatformDeviceSkia();
- SkPDFDevice* PdfDevice() { return pdf_device_.get(); }
+#if 0
+ SkPDFDevice* PdfDevice() { return GetOwningDevice();/*pdf_device_.get();*/ }
+#endif
// PlatformDevice methods.
virtual bool IsNativeFontRenderingAllowed();
@@ -43,6 +45,7 @@
#endif
// SkDevice methods.
+#if 0
virtual uint32_t getDeviceCapabilities();
virtual int width() const;
virtual int height() const;
@@ -78,15 +81,20 @@
int indexCount, const SkPaint& paint);
virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y,
const SkPaint&);
+#endif
protected:
+#if 0
virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
int height, bool isOpaque,
Usage usage);
+#endif
private:
- SkRefPtr<SkPDFDevice> pdf_device_;
- SkRefPtr<BitmapPlatformDevice> raster_surface_;
+ //SkRefPtr<SkPDFDevice> pdf_device_;
+ //SkRefPtr<BitmapPlatformDevice> raster_surface_;
+ SkRefPtr<SkDevice> raster_surface_;
+ SkRefPtr<SkCanvas> raster_canvas_;
DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia);
};

Powered by Google App Engine
This is Rietveld 408576698