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

Side by Side Diff: src/gpu/effects/GrCoverageSetOpXP.cpp

Issue 1158453004: Revert of Move DstCoordTexture to GrXP, rename and remove the word "copy" from dstcopytexture names. (Closed) Base URL: https://skia.googlesource.com/skia.git@copy
Patch Set: Created 5 years, 7 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/GrXferProcessor.cpp ('k') | src/gpu/effects/GrCustomXfermode.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 2014 Google Inc. 3 * Copyright 2014 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 #include "effects/GrCoverageSetOpXP.h" 9 #include "effects/GrCoverageSetOpXP.h"
10 #include "GrCaps.h" 10 #include "GrCaps.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 default: 220 default:
221 return NULL; 221 return NULL;
222 } 222 }
223 } 223 }
224 224
225 GrXferProcessor* 225 GrXferProcessor*
226 GrCoverageSetOpXPFactory::onCreateXferProcessor(const GrCaps& caps, 226 GrCoverageSetOpXPFactory::onCreateXferProcessor(const GrCaps& caps,
227 const GrProcOptInfo& colorPOI, 227 const GrProcOptInfo& colorPOI,
228 const GrProcOptInfo& covPOI, 228 const GrProcOptInfo& covPOI,
229 const DstTexture* dst) const { 229 const GrDeviceCoordTexture* dstC opy) const {
230 SkASSERT(!dst);
231 return CoverageSetOpXP::Create(fRegionOp, fInvertCoverage); 230 return CoverageSetOpXP::Create(fRegionOp, fInvertCoverage);
232 } 231 }
233 232
234 void GrCoverageSetOpXPFactory::getInvariantOutput(const GrProcOptInfo& colorPOI, 233 void GrCoverageSetOpXPFactory::getInvariantOutput(const GrProcOptInfo& colorPOI,
235 const GrProcOptInfo& coverageP OI, 234 const GrProcOptInfo& coverageP OI,
236 GrXPFactory::InvariantOutput* output) const { 235 GrXPFactory::InvariantOutput* output) const {
237 if (SkRegion::kReplace_Op == fRegionOp) { 236 if (SkRegion::kReplace_Op == fRegionOp) {
238 if (coveragePOI.isSolidWhite()) { 237 if (coveragePOI.isSolidWhite()) {
239 output->fBlendedColor = GrColor_WHITE; 238 output->fBlendedColor = GrColor_WHITE;
240 output->fBlendedColorFlags = kRGBA_GrColorComponentFlags; 239 output->fBlendedColorFlags = kRGBA_GrColorComponentFlags;
(...skipping 12 matching lines...) Expand all
253 252
254 GrXPFactory* GrCoverageSetOpXPFactory::TestCreate(SkRandom* random, 253 GrXPFactory* GrCoverageSetOpXPFactory::TestCreate(SkRandom* random,
255 GrContext*, 254 GrContext*,
256 const GrCaps&, 255 const GrCaps&,
257 GrTexture*[]) { 256 GrTexture*[]) {
258 SkRegion::Op regionOp = SkRegion::Op(random->nextULessThan(SkRegion::kLastOp + 1)); 257 SkRegion::Op regionOp = SkRegion::Op(random->nextULessThan(SkRegion::kLastOp + 1));
259 bool invertCoverage = random->nextBool(); 258 bool invertCoverage = random->nextBool();
260 return GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage); 259 return GrCoverageSetOpXPFactory::Create(regionOp, invertCoverage);
261 } 260 }
262 261
OLDNEW
« no previous file with comments | « src/gpu/GrXferProcessor.cpp ('k') | src/gpu/effects/GrCustomXfermode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698