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

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

Issue 1952323002: Remove hasMixedSamples() from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comments Created 4 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 | « 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 30 matching lines...) Expand all
41 blendedColor->fWillBlendWithDst = true; 41 blendedColor->fWillBlendWithDst = true;
42 blendedColor->fKnownColorFlags = kNone_GrColorComponentFlags; 42 blendedColor->fKnownColorFlags = kNone_GrColorComponentFlags;
43 return; 43 return;
44 } 44 }
45 blendedColor->fWillBlendWithDst = false; 45 blendedColor->fWillBlendWithDst = false;
46 46
47 blendedColor->fKnownColor = inputColor; 47 blendedColor->fKnownColor = inputColor;
48 blendedColor->fKnownColorFlags = validColorFlags; 48 blendedColor->fKnownColorFlags = validColorFlags;
49 } 49 }
50 50
51 static bool SrcOverWillNeedDstTexture(const GrCaps& caps, 51 static bool SrcOverWillNeedDstTexture(const GrCaps&, const GrPipelineOptimiz ations&);
52 const GrPipelineOptimizations& optimiz ations,
53 bool hasMixedSamples);
54 52
55 private: 53 private:
56 GrPorterDuffXPFactory(SkXfermode::Mode); 54 GrPorterDuffXPFactory(SkXfermode::Mode);
57 55
58 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps, 56 GrXferProcessor* onCreateXferProcessor(const GrCaps& caps,
59 const GrPipelineOptimizations& optimi zations, 57 const GrPipelineOptimizations& optimi zations,
60 bool hasMixedSamples, 58 bool hasMixedSamples,
61 const DstTexture*) const override; 59 const DstTexture*) const override;
62 60
63 bool onWillReadDstColor(const GrCaps& caps, 61 bool onWillReadDstColor(const GrCaps&, const GrPipelineOptimizations&) const override;
64 const GrPipelineOptimizations& optimizations,
65 bool hasMixedSamples) const override;
66 62
67 bool onIsEqual(const GrXPFactory& xpfBase) const override { 63 bool onIsEqual(const GrXPFactory& xpfBase) const override {
68 const GrPorterDuffXPFactory& xpf = xpfBase.cast<GrPorterDuffXPFactory>() ; 64 const GrPorterDuffXPFactory& xpf = xpfBase.cast<GrPorterDuffXPFactory>() ;
69 return fXfermode == xpf.fXfermode; 65 return fXfermode == xpf.fXfermode;
70 } 66 }
71 67
72 GR_DECLARE_XP_FACTORY_TEST; 68 GR_DECLARE_XP_FACTORY_TEST;
73 static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, in t* outSecondary); 69 static void TestGetXPOutputTypes(const GrXferProcessor*, int* outPrimary, in t* outSecondary);
74 70
75 SkXfermode::Mode fXfermode; 71 SkXfermode::Mode fXfermode;
76 72
77 friend class GrPorterDuffTest; // for TestGetXPOutputTypes() 73 friend class GrPorterDuffTest; // for TestGetXPOutputTypes()
78 typedef GrXPFactory INHERITED; 74 typedef GrXPFactory INHERITED;
79 }; 75 };
80 76
81 #endif 77 #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