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

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

Issue 927623002: Determine whether we can tweakAlphaForCoverage during Pipeline/XP creation. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: review nit Created 5 years, 10 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/GrInvariantOutput.h ('k') | src/gpu/GrPipeline.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 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 GrXferProcessor_DEFINED 8 #ifndef GrXferProcessor_DEFINED
9 #define GrXferProcessor_DEFINED 9 #define GrXferProcessor_DEFINED
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 */ 66 */
67 kIgnoreCoverage_OptFlag = 0x4, 67 kIgnoreCoverage_OptFlag = 0x4,
68 /** 68 /**
69 * Clear color stages and override input color to that returned by getOp timizations 69 * Clear color stages and override input color to that returned by getOp timizations
70 */ 70 */
71 kOverrideColor_OptFlag = 0x8, 71 kOverrideColor_OptFlag = 0x8,
72 /** 72 /**
73 * Set CoverageDrawing_StateBit 73 * Set CoverageDrawing_StateBit
74 */ 74 */
75 kSetCoverageDrawing_OptFlag = 0x10, 75 kSetCoverageDrawing_OptFlag = 0x10,
76 /**
77 * Can tweak alpha for coverage. Currently this flag should only be used by a batch
78 */
79 kCanTweakAlphaForCoverage_OptFlag = 0x20,
76 }; 80 };
77 81
78 GR_DECL_BITFIELD_OPS_FRIENDS(OptFlags); 82 GR_DECL_BITFIELD_OPS_FRIENDS(OptFlags);
79 83
80 /** 84 /**
81 * Determines which optimizations (as described by the ptFlags above) can be performed by 85 * Determines which optimizations (as described by the ptFlags above) can be performed by
82 * the draw with this xfer processor. If this function is called, the xfer p rocessor may change 86 * the draw with this xfer processor. If this function is called, the xfer p rocessor may change
83 * its state to reflected the given blend optimizations. If the XP needs to see a specific input 87 * its state to reflected the given blend optimizations. If the XP needs to see a specific input
84 * color to blend correctly, it will set the OverrideColor flag and the outp ut parameter 88 * color to blend correctly, it will set the OverrideColor flag and the outp ut parameter
85 * overrideColor will be the required value that should be passed into the X P. 89 * overrideColor will be the required value that should be passed into the X P.
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 enum { 292 enum {
289 kIllegalXPFClassID = 0, 293 kIllegalXPFClassID = 0,
290 }; 294 };
291 static int32_t gCurrXPFClassID; 295 static int32_t gCurrXPFClassID;
292 296
293 typedef GrProgramElement INHERITED; 297 typedef GrProgramElement INHERITED;
294 }; 298 };
295 299
296 #endif 300 #endif
297 301
OLDNEW
« no previous file with comments | « include/gpu/GrInvariantOutput.h ('k') | src/gpu/GrPipeline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698