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

Side by Side Diff: include/gpu/GrProcessorStage.h

Issue 660573002: Split GrFragmentProcessor into its own header (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add file to git Created 6 years, 2 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/GrProcessor.h ('k') | src/core/SkXfermode.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 /* 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
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
OLDNEW
« no previous file with comments | « include/gpu/GrProcessor.h ('k') | src/core/SkXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698