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

Side by Side Diff: src/effects/SkArithmeticMode_gpu.h

Issue 1040303002: Use texture barriers to read directly from the RT (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_zz1_reverseiter
Patch Set: Created 5 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 SkArithmeticMode_gpu_DEFINED 8 #ifndef SkArithmeticMode_gpu_DEFINED
9 #define SkArithmeticMode_gpu_DEFINED 9 #define SkArithmeticMode_gpu_DEFINED
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 bool supportsRGBCoverage(GrColor knownColor, uint32_t knownColorFlags) const override { 80 bool supportsRGBCoverage(GrColor knownColor, uint32_t knownColorFlags) const override {
81 return true; 81 return true;
82 } 82 }
83 83
84 bool canTweakAlphaForCoverage() const override { 84 bool canTweakAlphaForCoverage() const override {
85 return false; 85 return false;
86 } 86 }
87 87
88 bool willBlendCoherently(const GrDrawTargetCaps& caps) const override {
89 return true;
90 }
91
88 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI, 92 void getInvariantOutput(const GrProcOptInfo& colorPOI, const GrProcOptInfo& coveragePOI,
89 GrXPFactory::InvariantOutput*) const override; 93 GrXPFactory::InvariantOutput*) const override;
90 94
91 private: 95 private:
92 GrArithmeticXPFactory(float k1, float k2, float k3, float k4, bool enforcePM Color); 96 GrArithmeticXPFactory(float k1, float k2, float k3, float k4, bool enforcePM Color);
93 97
94 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps, 98 GrXferProcessor* onCreateXferProcessor(const GrDrawTargetCaps& caps,
95 const GrProcOptInfo& colorPOI, 99 const GrProcOptInfo& colorPOI,
96 const GrProcOptInfo& coveragePOI, 100 const GrProcOptInfo& coveragePOI,
97 const GrDeviceCoordTexture* dstCopy) const override; 101 const GrDeviceCoordTexture* dstCopy) const override;
(...skipping 19 matching lines...) Expand all
117 GR_DECLARE_XP_FACTORY_TEST; 121 GR_DECLARE_XP_FACTORY_TEST;
118 122
119 float fK1, fK2, fK3, fK4; 123 float fK1, fK2, fK3, fK4;
120 bool fEnforcePMColor; 124 bool fEnforcePMColor;
121 125
122 typedef GrXPFactory INHERITED; 126 typedef GrXPFactory INHERITED;
123 }; 127 };
124 128
125 #endif 129 #endif
126 #endif 130 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698