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

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

Issue 1127693002: Remove canTweakAlphaForCoverage from XP's since batch reads flag. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
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 | « no previous file | include/gpu/effects/GrCoverageSetOpXP.h » ('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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 }; 270 };
271 271
272 /** 272 /**
273 * This function returns known information about the output of the xfer proc essor produced by 273 * This function returns known information about the output of the xfer proc essor produced by
274 * this xp factory. The invariant color information returned by this functio n refers to the 274 * this xp factory. The invariant color information returned by this functio n refers to the
275 * final color produced after all blending. 275 * final color produced after all blending.
276 */ 276 */
277 virtual void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcO ptInfo& coveragePOI, 277 virtual void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcO ptInfo& coveragePOI,
278 InvariantOutput*) const = 0; 278 InvariantOutput*) const = 0;
279 279
280 /**
281 * Determines whether multiplying the computed per-pixel color by the pixel' s fractional
282 * coverage before the blend will give the correct final destination color. In general it
283 * will not as coverage is applied after blending.
284 */
285 virtual bool canTweakAlphaForCoverage() const = 0;
286
287 bool willNeedDstCopy(const GrDrawTargetCaps& caps, const GrProcOptInfo& colo rPOI, 280 bool willNeedDstCopy(const GrDrawTargetCaps& caps, const GrProcOptInfo& colo rPOI,
288 const GrProcOptInfo& coveragePOI) const; 281 const GrProcOptInfo& coveragePOI) const;
289 282
290 bool isEqual(const GrXPFactory& that) const { 283 bool isEqual(const GrXPFactory& that) const {
291 if (this->classID() != that.classID()) { 284 if (this->classID() != that.classID()) {
292 return false; 285 return false;
293 } 286 }
294 return this->onIsEqual(that); 287 return this->onIsEqual(that);
295 } 288 }
296 289
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 enum { 334 enum {
342 kIllegalXPFClassID = 0, 335 kIllegalXPFClassID = 0,
343 }; 336 };
344 static int32_t gCurrXPFClassID; 337 static int32_t gCurrXPFClassID;
345 338
346 typedef GrProgramElement INHERITED; 339 typedef GrProgramElement INHERITED;
347 }; 340 };
348 341
349 #endif 342 #endif
350 343
OLDNEW
« no previous file with comments | « no previous file | include/gpu/effects/GrCoverageSetOpXP.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698