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

Unified Diff: src/gpu/GrDrawState.cpp

Issue 817853002: Remove localcoordchange functions off paint (Closed) Base URL: https://skia.googlesource.com/skia.git@local-matrix-on-gp
Patch Set: cleanup 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
Index: src/gpu/GrDrawState.cpp
diff --git a/src/gpu/GrDrawState.cpp b/src/gpu/GrDrawState.cpp
index 883c74b8ee65ef6b15dddf06143f23afa5529cf5..6f9b4d5a4de623ad6e595df986f84519c1a646a3 100644
--- a/src/gpu/GrDrawState.cpp
+++ b/src/gpu/GrDrawState.cpp
@@ -112,24 +112,6 @@ void GrDrawState::onReset(const SkMatrix* initialViewMatrix) {
fCoveragePrimProc = NULL;
}
-bool GrDrawState::setIdentityViewMatrix() {
- if (this->numFragmentStages()) {
- SkMatrix invVM;
- if (!fViewMatrix.invert(&invVM)) {
- // sad trombone sound
- return false;
- }
- for (int s = 0; s < this->numColorStages(); ++s) {
- fColorStages[s].localCoordChange(invVM);
- }
- for (int s = 0; s < this->numCoverageStages(); ++s) {
- fCoverageStages[s].localCoordChange(invVM);
- }
- }
- fViewMatrix.reset();
- return true;
-}
-
void GrDrawState::setFromPaint(const GrPaint& paint, const SkMatrix& vm, GrRenderTarget* rt) {
SkASSERT(0 == fBlockEffectRemovalCnt || 0 == this->numFragmentStages());
« no previous file with comments | « src/gpu/GrDrawState.h ('k') | src/gpu/GrDrawTarget.h » ('j') | src/gpu/GrDrawTarget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698