Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: include/core/SkPicture.h

Issue 197803002: stub for ganesh veto (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkPicture.h
diff --git a/include/core/SkPicture.h b/include/core/SkPicture.h
index 37489e5a723cd7f81e5075ab75b9adb17cc84101..ba316ff66bf05dbedb947933c7c653575e16b97f 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
« no previous file with comments | « no previous file | src/core/SkPicture.cpp » ('j') | src/core/SkPicture.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698