OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
11 #ifndef GrProcessorStage_DEFINED | 11 #ifndef GrProcessorStage_DEFINED |
12 #define GrProcessorStage_DEFINED | 12 #define GrProcessorStage_DEFINED |
13 | 13 |
14 #include "GrBackendProcessorFactory.h" | 14 #include "GrBackendProcessorFactory.h" |
15 #include "GrCoordTransform.h" | 15 #include "GrCoordTransform.h" |
16 #include "GrProcessor.h" | 16 #include "GrFragmentProcessor.h" |
17 #include "GrGeometryProcessor.h" | |
18 #include "GrProgramElementRef.h" | 17 #include "GrProgramElementRef.h" |
19 #include "SkMatrix.h" | 18 #include "SkMatrix.h" |
20 #include "SkShader.h" | 19 #include "SkShader.h" |
21 | 20 |
22 // TODO: Make two variations on this class: One for GrDrawState that only owns r
egular refs | 21 // TODO: Make two variations on this class: One for GrDrawState that only owns r
egular refs |
23 // and supports compatibility checks and changing local coords. The second is fo
r GrOptDrawState, | 22 // and supports compatibility checks and changing local coords. The second is fo
r GrOptDrawState, |
24 // is immutable, and only owns pending execution refs. This requries removing th
e common base | 23 // is immutable, and only owns pending execution refs. This requries removing th
e common base |
25 // class from GrDrawState and GrOptDrawState called GrRODrawState and converting
to GrOptDrawState | 24 // class from GrDrawState and GrOptDrawState called GrRODrawState and converting
to GrOptDrawState |
26 // when draws are enqueued in the GrInOrderDrawBuffer. | 25 // when draws are enqueued in the GrInOrderDrawBuffer. |
27 class GrFragmentStage { | 26 class GrFragmentStage { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 150 |
152 void convertToPendingExec() { fProc.convertToPendingExec(); } | 151 void convertToPendingExec() { fProc.convertToPendingExec(); } |
153 | 152 |
154 protected: | 153 protected: |
155 bool fCoordChangeMatrixSet; | 154 bool fCoordChangeMatrixSet; |
156 SkMatrix fCoordChangeMatrix; | 155 SkMatrix fCoordChangeMatrix; |
157 GrProgramElementRef<const GrFragmentProcessor> fProc; | 156 GrProgramElementRef<const GrFragmentProcessor> fProc; |
158 }; | 157 }; |
159 | 158 |
160 #endif | 159 #endif |
OLD | NEW |