aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkImageGeneratorCG.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ports/SkImageGeneratorCG.h')
-rw-r--r--src/ports/SkImageGeneratorCG.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ports/SkImageGeneratorCG.h b/src/ports/SkImageGeneratorCG.h
index 9ecfe1b1fe..c675e85404 100644
--- a/src/ports/SkImageGeneratorCG.h
+++ b/src/ports/SkImageGeneratorCG.h
@@ -22,7 +22,11 @@ public:
static SkImageGenerator* NewFromEncodedCG(SkData* data);
protected:
- SkData* onRefEncodedData(GrContext* ctx) override;
+ SkData* onRefEncodedData(
+#ifdef SK_SUPPORT_GPU_REF_ENCODED_DATA
+ GrContext* ctx
+#endif
+ ) override;
bool onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[],
int* ctableCount) override;