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

Side by Side Diff: include/gpu/effects/GrPorterDuffXferProcessor.h

Issue 919683002: Remove canApplyCoverage from XP and all related functions in gpu code. (Closed) Base URL: https://skia.googlesource.com/skia.git@pdDstCopy
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 | « include/gpu/effects/GrCoverageSetOpXP.h ('k') | src/effects/SkArithmeticMode_gpu.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 GrPorterDuffXferProcessor_DEFINED 8 #ifndef GrPorterDuffXferProcessor_DEFINED
9 #define GrPorterDuffXferProcessor_DEFINED 9 #define GrPorterDuffXferProcessor_DEFINED
10 10
11 #include "GrTypes.h" 11 #include "GrTypes.h"
12 #include "GrXferProcessor.h" 12 #include "GrXferProcessor.h"
13 #include "SkXfermode.h" 13 #include "SkXfermode.h"
14 14
15 class GrProcOptInfo; 15 class GrProcOptInfo;
16 16
17 class GrPorterDuffXPFactory : public GrXPFactory { 17 class GrPorterDuffXPFactory : public GrXPFactory {
18 public: 18 public:
19 static GrXPFactory* Create(SkXfermode::Mode mode); 19 static GrXPFactory* Create(SkXfermode::Mode mode);
20 20
21 bool supportsRGBCoverage(GrColor knownColor, uint32_t knownColorFlags) const SK_OVERRIDE; 21 bool supportsRGBCoverage(GrColor knownColor, uint32_t knownColorFlags) const SK_OVERRIDE;
22 22
23 bool canApplyCoverage(const GrProcOptInfo& /*colorPOI*/,
24 const GrProcOptInfo& /*coveragePOI*/) const SK_OVERRID E {
25 return true;
26 }
27
28 bool canTweakAlphaForCoverage() const SK_OVERRIDE; 23 bool canTweakAlphaForCoverage() const SK_OVERRIDE;
29 24
30 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 25 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
31 GrXPFactory::InvariantOutput*) const SK_OVERRIDE; 26 GrXPFactory::InvariantOutput*) const SK_OVERRIDE;
32 27
33 private: 28 private:
34 GrPorterDuffXPFactory(GrBlendCoeff src, GrBlendCoeff dst); 29 GrPorterDuffXPFactory(GrBlendCoeff src, GrBlendCoeff dst);
35 30
36 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps, 31 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps,
37 const GrProcOptInfo& colorPOI, 32 const GrProcOptInfo& colorPOI,
(...skipping 11 matching lines...) Expand all
49 44
50 GR_DECLARE_XP_FACTORY_TEST; 45 GR_DECLARE_XP_FACTORY_TEST;
51 46
52 GrBlendCoeff fSrcCoeff; 47 GrBlendCoeff fSrcCoeff;
53 GrBlendCoeff fDstCoeff; 48 GrBlendCoeff fDstCoeff;
54 49
55 typedef GrXPFactory INHERITED; 50 typedef GrXPFactory INHERITED;
56 }; 51 };
57 52
58 #endif 53 #endif
OLDNEW
« no previous file with comments | « include/gpu/effects/GrCoverageSetOpXP.h ('k') | src/effects/SkArithmeticMode_gpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698