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

Unified Diff: gm/dcshader.cpp

Issue 832393002: Correctly declare skiagm::DCShader to be not flattenable. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/dcshader.cpp
diff --git a/gm/dcshader.cpp b/gm/dcshader.cpp
index 24d548d8d213a8d66b3afc77a365fc8185fff29b..34d5c6deef3f220ffd589e83f24db9f1dce9343a 100644
--- a/gm/dcshader.cpp
+++ b/gm/dcshader.cpp
@@ -25,7 +25,7 @@ class DCShader : public SkShader {
public:
DCShader(const SkMatrix& matrix) : fDeviceMatrix(matrix) {}
reed1 2015/01/05 16:27:59 // We're not flattenable because ...
hal.canary 2015/01/05 16:37:25 I don't care about serializing custom shaders, sin
- Factory getFactory() const SK_OVERRIDE { return NULL; }
+ SK_DECLARE_NOT_FLATTENABLE_PROCS(DCShader)
bool asFragmentProcessor(GrContext*, const SkPaint& paint, const SkMatrix& viewM,
const SkMatrix* localMatrix, GrColor* color,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698