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

Unified Diff: src/core/SkPicture.cpp

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 | « include/core/SkPicture.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPicture.cpp
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index b3dd6a4f0719286486a94b4d8e173dd07717206f..de04c2a28f153f94aef757665228835065cc51e6 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -26,6 +26,10 @@
#include "SkRTree.h"
#include "SkBBoxHierarchyRecord.h"
+#if SK_SUPPORT_GPU
+#include "GrContext.h"
+#endif
+
#define DUMP_BUFFER_SIZE 65536
//#define ENABLE_TIME_DRAW // dumps milliseconds for each draw
@@ -447,6 +451,11 @@ void SkPicture::flatten(SkWriteBuffer& buffer) const {
}
}
+bool SkPicture::suitableForGpuRasterization(GrContext* context) const {
bungeman-skia 2014/03/19 22:03:21 This impl also needs to be in #if SK_SUPPORT_GPU
+ // Stub for now; never veto GPu rasterization.
+ return true;
+}
+
bool SkPicture::willPlayBackBitmaps() const {
if (!fPlayback) {
return false;
« no previous file with comments | « include/core/SkPicture.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698