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

Unified Diff: src/effects/gradients/SkSweepGradient.cpp

Issue 808703006: remove view matrix from context (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: one more fix Created 6 years 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 | « src/effects/gradients/SkSweepGradient.h ('k') | src/effects/gradients/SkTwoPointConicalGradient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/SkSweepGradient.cpp
diff --git a/src/effects/gradients/SkSweepGradient.cpp b/src/effects/gradients/SkSweepGradient.cpp
index 6e91e2ba257c229fdda83f7fb2f9d1b2eacd3b1c..bcb2b0dc9e0d9681eb5d05d3b42fa1f073d7c9fc 100644
--- a/src/effects/gradients/SkSweepGradient.cpp
+++ b/src/effects/gradients/SkSweepGradient.cpp
@@ -260,7 +260,9 @@ GrFragmentProcessor* GrSweepGradient::TestCreate(SkRandom* random,
SkPaint paint;
GrFragmentProcessor* fp;
GrColor paintColor;
- SkAssertResult(shader->asFragmentProcessor(context, paint, NULL, &paintColor, &fp));
+ SkAssertResult(shader->asFragmentProcessor(context, paint,
+ GrProcessorUnitTest::TestMatrix(random), NULL,
+ &paintColor, &fp));
return fp;
}
@@ -293,6 +295,7 @@ void GrGLSweepGradient::emitCode(GrGLFPBuilder* builder,
/////////////////////////////////////////////////////////////////////
bool SkSweepGradient::asFragmentProcessor(GrContext* context, const SkPaint& paint,
+ const SkMatrix& viewM,
const SkMatrix* localMatrix, GrColor* paintColor,
GrFragmentProcessor** effect) const {
@@ -317,7 +320,8 @@ bool SkSweepGradient::asFragmentProcessor(GrContext* context, const SkPaint& pai
#else
-bool SkSweepGradient::asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix*, GrColor*,
+bool SkSweepGradient::asFragmentProcessor(GrContext*, const SkPaint&, const SkMatrix&,
+ const SkMatrix*, GrColor*,
GrFragmentProcessor**) const {
SkDEBUGFAIL("Should not call in GPU-less build");
return false;
« no previous file with comments | « src/effects/gradients/SkSweepGradient.h ('k') | src/effects/gradients/SkTwoPointConicalGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698