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

Side by Side Diff: tests/GrPorterDuffTest.cpp

Issue 1213383005: Rework GrPipelineInfo (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixed Created 5 years, 5 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 | « src/gpu/effects/GrPorterDuffXferProcessor.cpp ('k') | no next file » | 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 2015 Google Inc. 2 * Copyright 2015 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 #include "SkXfermode.h" 8 #include "SkXfermode.h"
9 #include "Test.h" 9 #include "Test.h"
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 enum { 56 enum {
57 kNone_OutputType, 57 kNone_OutputType,
58 kCoverage_OutputType, 58 kCoverage_OutputType,
59 kModulate_OutputType, 59 kModulate_OutputType,
60 kISAModulate_OutputType, 60 kISAModulate_OutputType,
61 kISCModulate_OutputType 61 kISCModulate_OutputType
62 }; 62 };
63 63
64 enum { 64 enum {
65 kNone_Opt = GrXferProcessor::kNone_Opt, 65 kNone_OptFlags = GrXferProcessor::kNone_OptFlags,
66 kSkipDraw_OptFlag = GrXferProcessor::kSkipDraw_OptFlag, 66 kSkipDraw_OptFlag = GrXferProcessor::kSkipDraw_OptFlag,
67 kIgnoreColor_OptFlag = GrXferProcessor::kIgnoreColor_OptFlag, 67 kIgnoreColor_OptFlag = GrXferProcessor::kIgnoreColor_OptFlag,
68 kIgnoreCoverage_OptFlag = GrXferProcessor::kIgnoreCoverage_OptFlag , 68 kIgnoreCoverage_OptFlag = GrXferProcessor::kIgnoreCoverage_OptFlag ,
69 kCanTweakAlphaForCoverage_OptFlag = GrXferProcessor::kCanTweakAlphaForCovera ge_OptFlag 69 kCanTweakAlphaForCoverage_OptFlag = GrXferProcessor::kCanTweakAlphaForCovera ge_OptFlag
70 }; 70 };
71 71
72 class GrPorterDuffTest { 72 class GrPorterDuffTest {
73 public: 73 public:
74 struct XPInfo { 74 struct XPInfo {
75 XPInfo(skiatest::Reporter* reporter, SkXfermode::Mode xfermode, const Gr Caps& caps, 75 XPInfo(skiatest::Reporter* reporter, SkXfermode::Mode xfermode, const Gr Caps& caps,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 TEST_ASSERT(kCoverage_OutputType == xpi.fPrimaryOutputType); 121 TEST_ASSERT(kCoverage_OutputType == xpi.fPrimaryOutputType);
122 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 122 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
123 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation); 123 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation);
124 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 124 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
125 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 125 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
126 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 126 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
127 break; 127 break;
128 case SkXfermode::kSrc_Mode: 128 case SkXfermode::kSrc_Mode:
129 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst); 129 TEST_ASSERT(!xpi.fBlendedColor.fWillBlendWithDst);
130 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 130 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
131 TEST_ASSERT((kNone_Opt) == xpi.fOptFlags); 131 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags);
132 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 132 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
133 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); 133 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType);
134 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 134 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
135 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 135 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
136 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 136 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
137 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 137 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
138 break; 138 break;
139 case SkXfermode::kDst_Mode: 139 case SkXfermode::kDst_Mode:
140 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 140 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
141 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 141 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
(...skipping 26 matching lines...) Expand all
168 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 168 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
169 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 169 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
170 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 170 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
171 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 171 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
172 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 172 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
173 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 173 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
174 break; 174 break;
175 case SkXfermode::kSrcIn_Mode: 175 case SkXfermode::kSrcIn_Mode:
176 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 176 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
177 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 177 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
178 TEST_ASSERT((kNone_Opt) == xpi.fOptFlags); 178 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags);
179 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 179 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
180 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); 180 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType);
181 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 181 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
182 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 182 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
183 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 183 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
184 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 184 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
185 break; 185 break;
186 case SkXfermode::kDstIn_Mode: 186 case SkXfermode::kDstIn_Mode:
187 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 187 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
188 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 188 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
189 TEST_ASSERT((kNone_Opt) == xpi.fOptFlags); 189 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags);
190 TEST_ASSERT(kISAModulate_OutputType == xpi.fPrimaryOutputType); 190 TEST_ASSERT(kISAModulate_OutputType == xpi.fPrimaryOutputType);
191 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 191 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
192 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation); 192 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation);
193 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 193 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
194 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 194 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
195 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 195 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
196 break; 196 break;
197 case SkXfermode::kSrcOut_Mode: 197 case SkXfermode::kSrcOut_Mode:
198 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 198 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
199 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 199 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
200 TEST_ASSERT((kNone_Opt) == xpi.fOptFlags); 200 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags);
201 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 201 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
202 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType); 202 TEST_ASSERT(kCoverage_OutputType == xpi.fSecondaryOutputType);
203 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 203 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
204 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 204 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
205 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 205 TEST_ASSERT(kIS2A_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
206 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 206 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
207 break; 207 break;
208 case SkXfermode::kDstOut_Mode: 208 case SkXfermode::kDstOut_Mode:
209 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 209 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
210 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 210 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
(...skipping 12 matching lines...) Expand all
223 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 223 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
224 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 224 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
225 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 225 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
226 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 226 TEST_ASSERT(kDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
227 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 227 TEST_ASSERT(kISA_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
228 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 228 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
229 break; 229 break;
230 case SkXfermode::kDstATop_Mode: 230 case SkXfermode::kDstATop_Mode:
231 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 231 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
232 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 232 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
233 TEST_ASSERT((kNone_Opt) == xpi.fOptFlags); 233 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags);
234 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 234 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
235 TEST_ASSERT(kISAModulate_OutputType == xpi.fSecondaryOutputType) ; 235 TEST_ASSERT(kISAModulate_OutputType == xpi.fSecondaryOutputType) ;
236 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 236 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
237 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 237 TEST_ASSERT(kIDA_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
238 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 238 TEST_ASSERT(kIS2C_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
239 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 239 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
240 break; 240 break;
241 case SkXfermode::kXor_Mode: 241 case SkXfermode::kXor_Mode:
242 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 242 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
243 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 243 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
(...skipping 12 matching lines...) Expand all
256 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 256 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
257 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 257 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
258 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 258 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
259 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 259 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
260 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 260 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
261 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 261 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
262 break; 262 break;
263 case SkXfermode::kModulate_Mode: 263 case SkXfermode::kModulate_Mode:
264 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 264 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
265 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 265 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
266 TEST_ASSERT((kNone_Opt) == xpi.fOptFlags); 266 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags);
267 TEST_ASSERT(kISCModulate_OutputType == xpi.fPrimaryOutputType); 267 TEST_ASSERT(kISCModulate_OutputType == xpi.fPrimaryOutputType);
268 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 268 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
269 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation); 269 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation);
270 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 270 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
271 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 271 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
272 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 272 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
273 break; 273 break;
274 case SkXfermode::kScreen_Mode: 274 case SkXfermode::kScreen_Mode:
275 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 275 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
276 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 276 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType); 656 TEST_ASSERT(kModulate_OutputType == xpi.fPrimaryOutputType);
657 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 657 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
658 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation); 658 TEST_ASSERT(kAdd_GrBlendEquation == xpi.fBlendInfo.fEquation);
659 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 659 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
660 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 660 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
661 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 661 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
662 break; 662 break;
663 case SkXfermode::kModulate_Mode: 663 case SkXfermode::kModulate_Mode:
664 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 664 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
665 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 665 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
666 TEST_ASSERT((kNone_Opt) == xpi.fOptFlags); 666 TEST_ASSERT((kNone_OptFlags) == xpi.fOptFlags);
667 TEST_ASSERT(kISCModulate_OutputType == xpi.fPrimaryOutputType); 667 TEST_ASSERT(kISCModulate_OutputType == xpi.fPrimaryOutputType);
668 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType); 668 TEST_ASSERT(kNone_OutputType == xpi.fSecondaryOutputType);
669 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation); 669 TEST_ASSERT(kReverseSubtract_GrBlendEquation == xpi.fBlendInfo.f Equation);
670 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend); 670 TEST_ASSERT(kDC_GrBlendCoeff == xpi.fBlendInfo.fSrcBlend);
671 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend); 671 TEST_ASSERT(kOne_GrBlendCoeff == xpi.fBlendInfo.fDstBlend);
672 TEST_ASSERT(xpi.fBlendInfo.fWriteColor); 672 TEST_ASSERT(xpi.fBlendInfo.fWriteColor);
673 break; 673 break;
674 case SkXfermode::kScreen_Mode: 674 case SkXfermode::kScreen_Mode:
675 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst); 675 TEST_ASSERT(xpi.fBlendedColor.fWillBlendWithDst);
676 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags); 676 TEST_ASSERT(kNone_GrColorComponentFlags == xpi.fBlendedColor.fKn ownColorFlags);
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 TEST_ASSERT(!xp->hasSecondaryOutput()); 1008 TEST_ASSERT(!xp->hasSecondaryOutput());
1009 xp->getOptimizations(colorPOI, covPOI, false, 0, caps); 1009 xp->getOptimizations(colorPOI, covPOI, false, 0, caps);
1010 TEST_ASSERT(!xp->hasSecondaryOutput()); 1010 TEST_ASSERT(!xp->hasSecondaryOutput());
1011 } 1011 }
1012 } 1012 }
1013 } 1013 }
1014 } 1014 }
1015 1015
1016 #endif 1016 #endif
1017 1017
OLDNEW
« no previous file with comments | « src/gpu/effects/GrPorterDuffXferProcessor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698