Index: include/gpu/SkGpuDevice.h |
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h |
index b856d66743bc9bffdd91af8c0834815adc2b057e..75e7eb545ca3a2aa3326bdfe23aff9781ff74512 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 */ |