Index: src/image/SkSurface_Gpu.cpp |
diff --git a/src/image/SkSurface_Gpu.cpp b/src/image/SkSurface_Gpu.cpp |
index c7ebe0ebe1cf7e3278d08b7424594ab5a60c9979..3e1eb9452bdfd6fe2394e4b9999fd32b6da5820d 100644 |
--- a/src/image/SkSurface_Gpu.cpp |
+++ b/src/image/SkSurface_Gpu.cpp |
@@ -10,6 +10,8 @@ |
#include "SkCanvas.h" |
#include "SkGpuDevice.h" |
+#if SK_SUPPORT_GPU |
+ |
class SkSurface_Gpu : public SkSurface_Base { |
public: |
SK_DECLARE_INST_COUNT(SkSurface_Gpu) |
@@ -154,3 +156,5 @@ SkSurface* SkSurface::NewScratchRenderTarget(GrContext* ctx, const SkImageInfo& |
return SkNEW_ARGS(SkSurface_Gpu, (tex->asRenderTarget(), props, true)); |
} |
+ |
+#endif |