Index: include/core/SkPictureRecorder.h |
diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h |
index 82efcf0e99be4b1c66849d7562cb354f2fee3fa9..f20a06adf44fa41d3e166f3b7fc2ac3677675006 100644 |
--- a/include/core/SkPictureRecorder.h |
+++ b/include/core/SkPictureRecorder.h |
@@ -19,6 +19,7 @@ namespace android { |
}; |
#endif |
+class GrContext; |
class SkCanvas; |
class SkDrawable; |
class SkPictureRecord; |
@@ -111,6 +112,9 @@ public: |
SkPicture* SK_WARN_UNUSED_RESULT endRecording() { return this->endRecordingAsPicture(); } |
#endif |
+ // Strawman API. |
+ void optimizeFor(GrContext* ctx) { fGrContextToOptimizeFor = ctx; } |
+ |
private: |
void reset(); |
@@ -131,6 +135,8 @@ private: |
SkAutoTUnref<SkRecord> fRecord; |
SkMiniRecorder fMiniRecorder; |
+ GrContext* fGrContextToOptimizeFor = nullptr; |
+ |
typedef SkNoncopyable INHERITED; |
}; |