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

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

Issue 1541903002: added support for PLS path rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix for ASAN failure Created 4 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
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool hasMixedSamples); 53 bool hasMixedSamples);
54 54
55 private: 55 private:
56 GrPorterDuffXPFactory(SkXfermode::Mode); 56 GrPorterDuffXPFactory(SkXfermode::Mode);
57 57
58 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, 58 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
59 const GrPipelineOptimizations& optimi zations, 59 const GrPipelineOptimizations& optimi zations,
60 bool hasMixedSamples, 60 bool hasMixedSamples,
61 const DstTexture*) const override; 61 const DstTexture*) const override;
62 62
63 bool willReadDstColor(const GrCaps& caps, 63 bool onWillReadDstColor(const GrCaps& caps,
64 const GrPipelineOptimizations& optimizations, 64 const GrPipelineOptimizations& optimizations,
65 bool hasMixedSamples) const override; 65 bool hasMixedSamples) const override;
66 66
67 bool onIsEqual(const GrXPFactory& xpfBase) const override { 67 bool onIsEqual(const GrXPFactory& xpfBase) const override {
68 const GrPorterDuffXPFactory& xpf = xpfBase.cast<GrPorterDuffXPFactory>() ; 68 const GrPorterDuffXPFactory& xpf = xpfBase.cast<GrPorterDuffXPFactory>() ;
69 return fXfermode == xpf.fXfermode; 69 return fXfermode == xpf.fXfermode;
70 } 70 }
71 71
72 GR_DECLARE_XP_FACTORY_TEST; 72 GR_DECLARE_XP_FACTORY_TEST;
73 static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, in t* outSecondary); 73 static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, in t* outSecondary);
74 74
75 SkXfermode::Mode fXfermode; 75 SkXfermode::Mode fXfermode;
76 76
77 friend class GrPorterDuffTest; // for TestGetXPOutputTypes() 77 friend class GrPorterDuffTest; // for TestGetXPOutputTypes()
78 typedef GrXPFactory INHERITED; 78 typedef GrXPFactory INHERITED;
79 }; 79 };
80 80
81 #endif 81 #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