OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |