Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index 848709445dadc3e39cb911513038664c869013b1..e58375b53b09c4bd43741ac230a58be8c1656004 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -10,30 +10,10 @@ |
#include "SkImage_Base.h" |
#include "SkCanvas.h" |
#include "SkGpuDevice.h" |
+#include "SkSurface_Gpu.h" |
#if SK_SUPPORT_GPU |
-class SkSurface_Gpu : public SkSurface_Base { |
-public: |
- SK_DECLARE_INST_COUNT(SkSurface_Gpu) |
- |
- SkSurface_Gpu(GrRenderTarget*, const SkSurfaceProps*, bool doClear); |
- virtual ~SkSurface_Gpu(); |
- |
- virtual SkCanvas* onNewCanvas() SK_OVERRIDE; |
- virtual SkSurface* onNewSurface(const SkImageInfo&) SK_OVERRIDE; |
- virtual SkImage* onNewImageSnapshot() SK_OVERRIDE; |
- virtual void onDraw(SkCanvas*, SkScalar x, SkScalar y, |
- const SkPaint*) SK_OVERRIDE; |
- virtual void onCopyOnWrite(ContentChangeMode) SK_OVERRIDE; |
- virtual void onDiscard() SK_OVERRIDE; |
- |
-private: |
- SkGpuDevice* fDevice; |
- |
- typedef SkSurface_Base INHERITED; |
-}; |
- |
/////////////////////////////////////////////////////////////////////////////// |
SkSurface_Gpu::SkSurface_Gpu(GrRenderTarget* renderTarget, const SkSurfaceProps* props, |