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

Unified Diff: include/core/SkShader.h

Issue 318923005: SkShader::asNewEffect Refactoring (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Style corrections Created 6 years, 6 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 | « no previous file | include/effects/SkPerlinNoiseShader.h » ('j') | src/core/SkBitmapProcShader.h » ('J')
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 82efab27410439b369d2186012354f480232fc0b..9243410b3b3f8bf0610456d4dc0b94c22a2b27a8 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -14,6 +14,7 @@
#include "SkMask.h"
#include "SkMatrix.h"
#include "SkPaint.h"
+#include "../gpu/GrColor.h"
class SkPath;
class SkPicture;
@@ -379,8 +380,8 @@ public:
* color. The GrContext may be used by the effect to create textures. The GPU device does not
* call createContext. Instead we pass the SkPaint here in case the shader needs paint info.
*/
- virtual GrEffectRef* asNewEffect(GrContext* context, const SkPaint& paint,
- const SkMatrix* localMatrixOrNull) const;
+ virtual bool asNewEffect(GrContext* context, const SkPaint& paint, GrColor* grColor,
jvanverth1 2014/06/05 17:03:07 I'd probably put grColor and grEffect at the end o
dandov 2014/06/06 21:50:43 Done.
+ GrEffectRef** grEffect, const SkMatrix* localMatrixOrNull) const;
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
/**
« no previous file with comments | « no previous file | include/effects/SkPerlinNoiseShader.h » ('j') | src/core/SkBitmapProcShader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698