aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkPicture.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkPicture.h')
-rw-r--r--include/core/SkPicture.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 37489e5a72..ba316ff66b 100644
--- a/include/core/SkPicture.h
+++ b/include/core/SkPicture.h
@@ -14,6 +14,10 @@
#include "SkImageDecoder.h"
#include "SkRefCnt.h"
+#if SK_SUPPORT_GPU
+class GrContext;
+#endif
+
class SkBBoxHierarchy;
class SkCanvas;
class SkDrawPictureCallback;
@@ -260,6 +264,13 @@ public:
*/
void internalOnly_EnableOpts(bool enableOpts);
+ /** Return true if the picture is suitable for rendering on the GPU.
+ */
+
+#if SK_SUPPORT_GPU
+ bool suitableForGpuRasterization(GrContext*) const;
+#endif
+
protected:
// V2 : adds SkPixelRef's generation ID.
// V3 : PictInfo tag at beginning, and EOF tag at the end