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

Unified Diff: include/gpu/GrEffectStage.h

Issue 571163002: removing GrDrawEffect (Closed) Base URL: https://skia.googlesource.com/skia.git@gp3
Patch Set: rebase Created 6 years, 3 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
Index: include/gpu/GrEffectStage.h
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h
index 6df7f90d6334a6d965151d36fa6e4f492c1347fc..eca22d7b68dfaf23ecfa0e51d065e947739ed38d 100644
--- a/include/gpu/GrEffectStage.h
+++ b/include/gpu/GrEffectStage.h
@@ -128,6 +128,17 @@ public:
}
}
+ /*
+ * an overload of the above but compensates for the usage of explicit local coords
+ */
+ const SkMatrix& getCoordChangeMatrix(bool explicitLocalCoords) const {
+ if (explicitLocalCoords) {
+ return SkMatrix::I();
+ } else {
+ return this->getCoordChangeMatrix();
+ }
+ }
+
const GrEffect* getEffect() const { return fEffect.get(); }
void convertToPendingExec() { fEffect.convertToPendingExec(); }

Powered by Google App Engine
This is Rietveld 408576698