Index: src/core/SkComposeShader.cpp |
diff --git a/src/core/SkComposeShader.cpp b/src/core/SkComposeShader.cpp |
index b2f69b4b69e6646495afde3536bcccddf3f88812..f7de73b205d45d652c2a2c9cfc0f560f2ba7f38b 100644 |
--- a/src/core/SkComposeShader.cpp |
+++ b/src/core/SkComposeShader.cpp |
@@ -121,6 +121,16 @@ SkComposeShader::ComposeShaderContext::~ComposeShaderContext() { |
fShaderContextB->~Context(); |
} |
+bool SkComposeShader::asACompose(ComposeRec* rec) const { |
+ if (rec) { |
+ rec->fShaderA = fShaderA; |
+ rec->fShaderB = fShaderB; |
+ rec->fMode = fMode; |
+ } |
+ return true; |
+} |
+ |
+ |
// larger is better (fewer times we have to loop), but we shouldn't |
// take up too much stack-space (each element is 4 bytes) |
#define TMP_COLOR_COUNT 64 |