Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: include/core/SkShader.h

Issue 196473010: bitmapshader with A8 bitmap should be colorized by the paint's color (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkPaint.h ('k') | src/core/SkBitmapProcShader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkShader.h
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index d0fac49f7e22cc30cbcb847c1538aada687fa18e..317633ff9f9042a201dba6d7ffc53728a8c7a982 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -345,6 +345,8 @@ public:
static SkShader* CreateBitmapShader(const SkBitmap& src,
TileMode tmx, TileMode tmy);
+ virtual SkBitmap* getBitmap() { return NULL;}
bsalomon 2014/03/13 14:59:04 I don't think the Shader should expose a bitmap. I
yunchao 2014/03/13 15:05:12 What about expose an interface like this: bool isA
yunchao 2014/03/13 15:32:28 Do you think it is unsafe if the shader expose a b
+
SkDEVCODE(virtual void toString(SkString* str) const;)
SK_DEFINE_FLATTENABLE_TYPE(SkShader)
« no previous file with comments | « include/core/SkPaint.h ('k') | src/core/SkBitmapProcShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698