diff options
author | Cary Clark <caryclark@skia.org> | 2018-02-07 15:51:00 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-02-08 13:34:49 +0000 |
commit | 4f5a79c676757c0f218156077fb0575d46a6583c (patch) | |
tree | 476f8be1a88454c728d6928c4821d71cb82e2de4 /include | |
parent | 4150eea6c49ecec882a8d3e1c61d6a25fcd1e905 (diff) |
remove kRW_LegacyBitmapMode
experiment to see if there are any unknown dependencies
on kRW_LegacyBitmapMode
R=reed@google.com,fmalita@chromium.org,bungeman@google.com
Bug: skia:5615
Change-Id: I2cc578570ac18cd31c3520e1bd801f4a7a669347
Reviewed-on: https://skia-review.googlesource.com/105283
Reviewed-by: Florin Malita <fmalita@chromium.org>
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Cary Clark <caryclark@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkImage.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h index 9e4e237db4..5cf6ebe475 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -583,22 +583,22 @@ public: // Helper functions to convert to SkBitmap - + // TODO: enum LegacyBitmapMode to be deprecated; keeping enum until callers are revised to omit + // parameter enum LegacyBitmapMode { kRO_LegacyBitmapMode, - kRW_LegacyBitmapMode, }; /** * Attempt to create a bitmap with the same pixels as the image. The result will always be * a raster-backed bitmap (texture-backed bitmaps are DEPRECATED, and not supported here). * - * If the mode is kRO (read-only), the resulting bitmap will be marked as immutable. + * The resulting bitmap will be marked as immutable. * * On succcess, returns true. On failure, returns false and the bitmap parameter will be reset * to empty. */ - bool asLegacyBitmap(SkBitmap* bitmap, LegacyBitmapMode legacyBitmapMode) const; + bool asLegacyBitmap(SkBitmap* bitmap, LegacyBitmapMode legacyBitmapMode = kRO_LegacyBitmapMode) const; /** * Returns true if the image is backed by an image-generator or other src that creates |