diff options
author | 2016-07-13 13:27:16 -0700 | |
---|---|---|
committer | 2016-07-13 13:27:16 -0700 | |
commit | dda54455a20dcd89de610bdb80e4a8e9137b80a4 (patch) | |
tree | 5c578a4207775bb102080fb304802ec43926de36 /include | |
parent | e92badc3ffce83668f76fcfa33a49784346cab1e (diff) |
Remove GrLayerHoister
This relies on https://codereview.chromium.org/1944013002/ (Add legacy flag to allow Skia to remove Ganesh layer hoister) landing first so as to not break the DEPS roll.
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1950523002
Review-Url: https://codereview.chromium.org/1950523002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkDevice.h | 13 | ||||
-rw-r--r-- | include/core/SkPictureRecorder.h | 4 | ||||
-rw-r--r-- | include/gpu/GrContext.h | 3 |
3 files changed, 2 insertions, 18 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index d23aa6916f..d7361a2565 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -310,19 +310,6 @@ protected: virtual bool onAccessPixels(SkPixmap*) { return false; } - /** - * PRIVATE / EXPERIMENTAL -- do not call - * This entry point gives the backend an opportunity to take over the rendering - * of 'picture'. If optimization data is available (due to an earlier - * 'optimize' call) this entry point should make use of it and return true - * if all rendering has been done. If false is returned, SkCanvas will - * perform its own rendering pass. It is acceptable for the backend - * to perform some device-specific warm up tasks and then let SkCanvas - * perform the main rendering loop (by return false from here). - */ - virtual bool EXPERIMENTAL_drawPicture(SkCanvas*, const SkPicture*, const SkMatrix*, - const SkPaint*); - struct CreateInfo { static SkPixelGeometry AdjustGeometry(const SkImageInfo&, TileUsage, SkPixelGeometry, bool preserveLCDText); diff --git a/include/core/SkPictureRecorder.h b/include/core/SkPictureRecorder.h index 419c01bc88..cc30be19da 100644 --- a/include/core/SkPictureRecorder.h +++ b/include/core/SkPictureRecorder.h @@ -31,9 +31,9 @@ public: ~SkPictureRecorder(); enum RecordFlags { - // This flag indicates that, if some BHH is being computed, saveLayer - // information should also be extracted at the same time. +#ifdef SK_SUPPORT_LEGACY_COMPUTESAVELAYER_FLAG kComputeSaveLayerInfo_RecordFlag = 1 << 0, +#endif // If you call drawPicture() or drawDrawable() on the recording canvas, this flag forces // that object to playback its contents immediately rather than reffing the object. diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h index f9d06f097a..3a57cd8e28 100644 --- a/include/gpu/GrContext.h +++ b/include/gpu/GrContext.h @@ -30,7 +30,6 @@ class GrDrawContext; class GrFragmentProcessor; class GrGpu; class GrIndexBuffer; -class GrLayerCache; class GrOvalRenderer; class GrPath; class GrPipelineBuilder; @@ -346,7 +345,6 @@ public: GrGpu* getGpu() { return fGpu; } const GrGpu* getGpu() const { return fGpu; } GrBatchFontCache* getBatchFontCache() { return fBatchFontCache; } - GrLayerCache* getLayerCache() { return fLayerCache.get(); } GrTextBlobCache* getTextBlobCache() { return fTextBlobCache; } bool abandoned() const; GrResourceProvider* resourceProvider() { return fResourceProvider; } @@ -402,7 +400,6 @@ private: SkAutoTUnref<GrContextThreadSafeProxy> fThreadSafeProxy; GrBatchFontCache* fBatchFontCache; - SkAutoTDelete<GrLayerCache> fLayerCache; SkAutoTDelete<GrTextBlobCache> fTextBlobCache; // Set by OverbudgetCB() to request that GrContext flush before exiting a draw. |