diff options
author | 2016-07-21 07:17:54 -0700 | |
---|---|---|
committer | 2016-07-21 07:17:54 -0700 | |
commit | 1f3923e4e5bf9afb9e52a15ced30e3854af73f7b (patch) | |
tree | b3d9484a73598754f40e74b67971f49e32b44a23 /include/core/SkBitmapDevice.h | |
parent | afbf71dd924c7bb46ccdac49e7408b4b088563ff (diff) |
Deprecate SkDevice::accessBitmap method
Relies on https://codereview.chromium.org/2162423003/ (Add SK_SUPPORT_LEGACY_ACCESSBITMAP Skia guard) landing in Chromium first.
Calved off: https://codereview.chromium.org/2163323002/ (Add desired width & height to drawContext (as opposed to using the width & height of the RT))
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2168483003
Review-Url: https://codereview.chromium.org/2168483003
Diffstat (limited to 'include/core/SkBitmapDevice.h')
-rw-r--r-- | include/core/SkBitmapDevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/core/SkBitmapDevice.h b/include/core/SkBitmapDevice.h index b62a88b47f..85beb1619b 100644 --- a/include/core/SkBitmapDevice.h +++ b/include/core/SkBitmapDevice.h @@ -135,7 +135,11 @@ protected: altered. The config/width/height/rowbytes must remain unchanged. @return the device contents as a bitmap */ +#ifdef SK_SUPPORT_LEGACY_ACCESSBITMAP const SkBitmap& onAccessBitmap() override; +#else + const SkBitmap& onAccessBitmap(); +#endif SkPixelRef* getPixelRef() const { return fBitmap.pixelRef(); } // just for subclasses, to assign a custom pixelref |