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

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

Issue 923153003: Revert of Use dst copies in porter duffer XP to correctly render certain blends. (Closed) Base URL: https://skia.googlesource.com/skia.git@prePDDstCopy
Patch Set: 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 GrDrawTargetCaps& caps, 42 GrXferProcessor* onCreateXferProcessor(const GrProcOptInfo& colorPOI,
43 const GrProcOptInfo& colorPOI,
44 const GrProcOptInfo& coveragePOI, 43 const GrProcOptInfo& coveragePOI,
45 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE; 44 const GrDeviceCoordTexture* dstCopy) const SK_OVERRIDE;
46 45
47 bool willReadDstColor(const GrDrawTargetCaps& caps, 46 bool willReadDstColor(const GrProcOptInfo& colorPOI,
48 const GrProcOptInfo& colorPOI,
49 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE { 47 const GrProcOptInfo& coveragePOI) const SK_OVERRIDE {
50 return false; 48 return false;
51 } 49 }
52 50
53 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE { 51 bool onIsEqual(const GrXPFactory& xpfBase) const SK_OVERRIDE {
54 return true; 52 return true;
55 } 53 }
56 54
57 GR_DECLARE_XP_FACTORY_TEST; 55 GR_DECLARE_XP_FACTORY_TEST;
58 56
59 typedef GrXPFactory INHERITED; 57 typedef GrXPFactory INHERITED;
60 }; 58 };
61 59
62 #endif 60 #endif
63 61
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