diff options
author | 2014-07-15 19:56:48 -0700 | |
---|---|---|
committer | 2014-07-15 19:56:48 -0700 | |
commit | 0847059fcffe11d53d4ea803ba2d51c696eb6d07 (patch) | |
tree | d6027eb114c874597e4110d2f221a461e18b298f /include | |
parent | cd27a41ddafe819fbc597110a50ec9cfadc28c1f (diff) |
Remove kImageIsImmutable_Flag.
This flag was only used when setting or checking SkBitmap's
immutability when it did not have an SkPixelRef. Now that an
SkBitmap *must* have one in order to draw (e.g. you can no
longer have an SkBitmap that owns its pixels directly), its
immutabity without an SkPixelRef makes no sense.
Also, now that the flags are not contiguous starting from
0x01, use a more appropriate check to ensure only meaningful
flags are used.
R=reed@google.com
Author: scroggo@google.com
Review URL: https://codereview.chromium.org/387083002
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkBitmap.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index c95accb808..0e847f2a4c 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -726,7 +726,6 @@ private: enum Flags { kImageIsVolatile_Flag = 0x02, - kImageIsImmutable_Flag = 0x04, #ifdef SK_BUILD_FOR_ANDROID /* A hint for the renderer responsible for drawing this bitmap * indicating that it should attempt to use mipmaps when this bitmap |