stub for ganesh veto
BUG=skia: R=bsalomon@google.com, nduca@chromium.org Author: humper@google.com Review URL: https://codereview.chromium.org/197803002 git-svn-id: http://skia.googlecode.com/svn/trunk@13866 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
e14792d99f
commit
eb9547c1d6
@ -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
|
||||
|
@ -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 {
|
||||
// Stub for now; never veto GPu rasterization.
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SkPicture::willPlayBackBitmaps() const {
|
||||
if (!fPlayback) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user