Remove kImageIsImmutable_Flag.
authorscroggo <scroggo@google.com>
Wed, 16 Jul 2014 02:56:48 +0000 (19:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Jul 2014 02:56:48 +0000 (19:56 -0700)
commit0847059fcffe11d53d4ea803ba2d51c696eb6d07
treed6027eb114c874597e4110d2f221a461e18b298f
parentcd27a41ddafe819fbc597110a50ec9cfadc28c1f
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
include/core/SkBitmap.h
src/core/SkBitmap.cpp