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

Side by Side Diff: src/gpu/effects/GrDisableColorXP.h

Issue 914003003: Use dst copies in porter duffer XP to correctly render certain blends. (Closed) Base URL: https://skia.googlesource.com/skia.git@prePDDstCopy
Patch Set: Rebase 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 | « src/gpu/effects/GrCustomXfermodePriv.h ('k') | src/gpu/effects/GrDisableColorXP.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 GrDisableColorXP_DEFINED 8 #ifndef GrDisableColorXP_DEFINED
9 #define GrDisableColorXP_DEFINED 9 #define GrDisableColorXP_DEFINED
10 10
(...skipping 21 matching lines...) Expand all
32 32
33 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 33 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
34 GrXPFactory::InvariantOutput* output) const SK_OVERR IDE { 34 GrXPFactory::InvariantOutput* output) const SK_OVERR IDE {
35 output->fBlendedColorFlags = 0; 35 output->fBlendedColorFlags = 0;
36 output->fWillBlendWithDst = 0; 36 output->fWillBlendWithDst = 0;
37 } 37 }
38 38
39 private: 39 private:
40 GrDisableColorXPFactory(); 40 GrDisableColorXPFactory();
41 41
42 GrXferProcessor* onCreateXferProcessor(const GrProcOptInfo& colorPOI, 42 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps,
43 const GrProcOptInfo& colorPOI,
43 const GrProcOptInfo& coveragePOI, 44 const GrProcOptInfo& coveragePOI,
44 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE; 45 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE;
45 46
46 bool willReadDstColor(const GrProcOptInfo& colorPOI, 47 bool willReadDstColor(const GrDrawTargetCaps& caps,
48 const GrProcOptInfo& colorPOI,
47 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE { 49 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
48 return false; 50 return false;
49 } 51 }
50 52
51 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 53 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
52 return true; 54 return true;
53 } 55 }
54 56
55 GR_DECLARE_XP_FACTORY_TEST; 57 GR_DECLARE_XP_FACTORY_TEST;
56 58
57 typedef GrXPFactory INHERITED; 59 typedef GrXPFactory INHERITED;
58 }; 60 };
59 61
60 #endif 62 #endif
61 63
OLDNEW
« no previous file with comments | « src/gpu/effects/GrCustomXfermodePriv.h ('k') | src/gpu/effects/GrDisableColorXP.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698