ColorShaders report no bitmaps, but only a color_gradient, which we now detect
on the gpu side.
git-svn-id: http://skia.googlecode.com/svn/trunk@1810 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/core/SkColorShader.h b/include/core/SkColorShader.h
index b7537e1..63b8a5e 100644
--- a/include/core/SkColorShader.h
+++ b/include/core/SkColorShader.h
@@ -47,6 +47,7 @@
virtual void shadeSpan16(int x, int y, uint16_t span[], int count);
virtual void shadeSpanAlpha(int x, int y, uint8_t alpha[], int count);
+ // we return false for this, use asAGradient
virtual BitmapType asABitmap(SkBitmap* outTexture,
SkMatrix* outMatrix,
TileMode xy[2],
@@ -68,9 +69,6 @@
uint16_t fColor16; // cached after setContext()
SkBool8 fInheritColor;
- // deferred allocation, used for asABitmap()
- mutable SkPixelRef* fAsABitmapPixelRef;
-
typedef SkShader INHERITED;
};