diff options
author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-22 03:44:57 +0000 |
---|---|---|
committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2009-08-22 03:44:57 +0000 |
commit | cafc9f9e80e30fa75ad8a952e7a290e72f211ce7 (patch) | |
tree | 1aeea3bf9d1c70f89a3ef09201b5814959582739 /include | |
parent | c41513c4dac51d68570b309ec28a315d974edea7 (diff) |
fixes around isOpaque and dithering
- copyTo() now preserves isOpaqueness, and BitmapCopyTest tests it
- bitmap shader doesn't claim to have shadespan16 if dithering is on, since its
sampler doesn't auto-dither (note that gradients do auto-dither in their
16bit sampler)
- blitter setup just relies on the shader to report if its 16bit sampler can be
called (allowing gradients to say yes regardless of dither, but bitmaps to say
no if dithering is on)
git-svn-id: http://skia.googlecode.com/svn/trunk@331 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkBitmap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h index 3c04a310a9..1c16b780e2 100644 --- a/include/core/SkBitmap.h +++ b/include/core/SkBitmap.h @@ -508,6 +508,9 @@ public: */ void setFlags(unsigned flags); + bool isOpaque() const { return (fFlags & kColorsAreOpaque_Flag) != 0; } + void setIsOpaque(bool isOpaque); + /** Returns the number of colors in the table. */ int count() const { return fCount; } |