Chromium Code Reviews| 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; |