diff options
author | robertphillips <robertphillips@google.com> | 2014-08-21 13:07:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-08-21 13:07:35 -0700 |
commit | 64bf76722ef06eabf51b55afda9f4ff431e41460 (patch) | |
tree | 58da52d1632ccceb83f6f2d8fd9644bfcb053206 /include | |
parent | c92e550d3656abaf83b134b158756b940d58a907 (diff) |
Split up monolithic EXPERIMENTAL_drawPicture method
This is prep for the new multi-picture API.
This is split out of (Add new API to allow layer hoisting/atlasing across picture piles - https://codereview.chromium.org/474623002/)
R=bsalomon@google.com
Author: robertphillips@google.com
Review URL: https://codereview.chromium.org/489103002
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/SkGpuDevice.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h index b856d66743..75e7eb545c 100644 --- a/include/gpu/SkGpuDevice.h +++ b/include/gpu/SkGpuDevice.h @@ -21,6 +21,8 @@ struct SkDrawProcs; struct GrSkDrawProcs; +class GrAccelData; +struct GrCachedLayer; class GrTextContext; /** @@ -140,6 +142,15 @@ protected: virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OVERRIDE; virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int) SK_OVERRIDE; + static bool FindLayersToHoist(const GrAccelData *gpuData, + const SkPicture::OperationList* ops, + const SkIRect& query, + bool* pullForward); + void drawLayers(const SkPicture* picture, + const SkTDArray<GrCachedLayer*>& atlased, + const SkTDArray<GrCachedLayer*>& nonAtlased); + void unlockLayers(const SkPicture* picture); + /** PRIVATE / EXPERIMENTAL -- do not call */ virtual void EXPERIMENTAL_optimize(const SkPicture* picture) SK_OVERRIDE; /** PRIVATE / EXPERIMENTAL -- do not call */ |