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

Side by Side Diff: src/gpu/GrDrawState.h

Issue 821243003: removing coord change matrices (Closed) Base URL: https://skia.googlesource.com/skia.git@no-coordchange-on-drawstate
Patch Set: rebase 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 unified diff | Download patch
« no previous file with comments | « include/gpu/GrPaint.h ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrDrawState_DEFINED 8 #ifndef GrDrawState_DEFINED
9 #define GrDrawState_DEFINED 9 #define GrDrawState_DEFINED
10 10
(...skipping 30 matching lines...) Expand all
41 } 41 }
42 42
43 /** 43 /**
44 * Copies another draw state. 44 * Copies another draw state.
45 **/ 45 **/
46 GrDrawState(const GrDrawState& state) { 46 GrDrawState(const GrDrawState& state) {
47 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;) 47 SkDEBUGCODE(fBlockEffectRemovalCnt = 0;)
48 *this = state; 48 *this = state;
49 } 49 }
50 50
51 /**
52 * Copies another draw state with a preconcat to the view matrix.
53 **/
54 GrDrawState(const GrDrawState& state, const SkMatrix& preConcatMatrix);
55
56 virtual ~GrDrawState(); 51 virtual ~GrDrawState();
57 52
58 /** 53 /**
59 * Resets to the default state. GrProcessors will be removed from all stages . 54 * Resets to the default state. GrProcessors will be removed from all stages .
60 */ 55 */
61 void reset() { this->onReset(NULL); } 56 void reset() { this->onReset(NULL); }
62 57
63 void reset(const SkMatrix& initialViewMatrix) { this->onReset(&initialViewMa trix); } 58 void reset(const SkMatrix& initialViewMatrix) { this->onReset(&initialViewMa trix); }
64 59
65 /** 60 /**
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 mutable bool fCoverageProcInfoValid; 537 mutable bool fCoverageProcInfoValid;
543 mutable GrColor fColorCache; 538 mutable GrColor fColorCache;
544 mutable GrColor fCoverageCache; 539 mutable GrColor fCoverageCache;
545 mutable const GrPrimitiveProcessor* fColorPrimProc; 540 mutable const GrPrimitiveProcessor* fColorPrimProc;
546 mutable const GrPrimitiveProcessor* fCoveragePrimProc; 541 mutable const GrPrimitiveProcessor* fCoveragePrimProc;
547 542
548 friend class GrOptDrawState; 543 friend class GrOptDrawState;
549 }; 544 };
550 545
551 #endif 546 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrPaint.h ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698