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

Side by Side Diff: include/gpu/effects/GrPorterDuffXferProcessor.h

Issue 746423007: Draft change to start pulling uniform color into GP (Closed) Base URL: https://skia.googlesource.com/skia.git@no_factories
Patch Set: more 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 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 GrPorterDuffXferProcessor_DEFINED 8 #ifndef GrPorterDuffXferProcessor_DEFINED
9 #define GrPorterDuffXferProcessor_DEFINED 9 #define GrPorterDuffXferProcessor_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 GrGLXferProcessor* createGLInstance() const SK_OVERRIDE; 31 GrGLXferProcessor* createGLInstance() const SK_OVERRIDE;
32 32
33 virtual bool hasSecondaryOutput() const SK_OVERRIDE; 33 virtual bool hasSecondaryOutput() const SK_OVERRIDE;
34 34
35 /////////////////////////////////////////////////////////////////////////// 35 ///////////////////////////////////////////////////////////////////////////
36 /// @name Stage Output Types 36 /// @name Stage Output Types
37 //// 37 ////
38 38
39 enum PrimaryOutputType { 39 enum PrimaryOutputType {
40 kNone_PrimaryOutputType,
41 kColor_PrimaryOutputType,
42 kCoverage_PrimaryOutputType,
40 // Modulate color and coverage, write result as the color output. 43 // Modulate color and coverage, write result as the color output.
41 kModulate_PrimaryOutputType, 44 kModulate_PrimaryOutputType,
42 // Combines the coverage, dst, and color as coverage * color + (1 - cove rage) * dst. This 45 // Combines the coverage, dst, and color as coverage * color + (1 - cove rage) * dst. This
43 // can only be set if fDstReadKey is non-zero. 46 // can only be set if fDstReadKey is non-zero.
44 kCombineWithDst_PrimaryOutputType, 47 kCombineWithDst_PrimaryOutputType,
45 }; 48 };
46 49
47 enum SecondaryOutputType { 50 enum SecondaryOutputType {
48 // There is no secondary output 51 // There is no secondary output
49 kNone_SecondaryOutputType, 52 kNone_SecondaryOutputType,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 160
158 GR_DECLARE_XP_FACTORY_TEST; 161 GR_DECLARE_XP_FACTORY_TEST;
159 162
160 GrBlendCoeff fSrcCoeff; 163 GrBlendCoeff fSrcCoeff;
161 GrBlendCoeff fDstCoeff; 164 GrBlendCoeff fDstCoeff;
162 165
163 typedef GrXPFactory INHERITED; 166 typedef GrXPFactory INHERITED;
164 }; 167 };
165 168
166 #endif 169 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698