OLD | NEW |
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 #include "effects/GrDisableColorXP.h" | 8 #include "effects/GrDisableColorXP.h" |
9 #include "GrProcessor.h" | 9 #include "GrProcessor.h" |
10 #include "glsl/GrGLSLFragmentShaderBuilder.h" | 10 #include "glsl/GrGLSLFragmentShaderBuilder.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 GrGLSLXferProcessor* createGLSLInstance() const override; | 27 GrGLSLXferProcessor* createGLSLInstance() const override; |
28 | 28 |
29 private: | 29 private: |
30 DisableColorXP(); | 30 DisableColorXP(); |
31 | 31 |
32 GrXferProcessor::OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, | 32 GrXferProcessor::OptFlags onGetOptimizations(const GrProcOptInfo& colorPOI, |
33 const GrProcOptInfo& coveragePO
I, | 33 const GrProcOptInfo& coveragePO
I, |
34 bool doesStencilWrite, | 34 bool doesStencilWrite, |
35 GrColor* color, | 35 GrColor* color, |
36 const GrCaps& caps) override { | 36 const GrCaps& caps) const overr
ide { |
37 return GrXferProcessor::kIgnoreColor_OptFlag | GrXferProcessor::kIgnoreC
overage_OptFlag; | 37 return GrXferProcessor::kIgnoreColor_OptFlag | GrXferProcessor::kIgnoreC
overage_OptFlag; |
38 } | 38 } |
39 | 39 |
40 void onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b)
const override; | 40 void onGetGLSLProcessorKey(const GrGLSLCaps& caps, GrProcessorKeyBuilder* b)
const override; |
41 | 41 |
42 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override; | 42 void onGetBlendInfo(GrXferProcessor::BlendInfo* blendInfo) const override; |
43 | 43 |
44 bool onIsEqual(const GrXferProcessor& xpBase) const override { | 44 bool onIsEqual(const GrXferProcessor& xpBase) const override { |
45 return true; | 45 return true; |
46 } | 46 } |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 const DstTexture* dst) const { | 102 const DstTexture* dst) const { |
103 return DisableColorXP::Create(); | 103 return DisableColorXP::Create(); |
104 } | 104 } |
105 | 105 |
106 GR_DEFINE_XP_FACTORY_TEST(GrDisableColorXPFactory); | 106 GR_DEFINE_XP_FACTORY_TEST(GrDisableColorXPFactory); |
107 | 107 |
108 const GrXPFactory* GrDisableColorXPFactory::TestCreate(GrProcessorTestData*) { | 108 const GrXPFactory* GrDisableColorXPFactory::TestCreate(GrProcessorTestData*) { |
109 return GrDisableColorXPFactory::Create(); | 109 return GrDisableColorXPFactory::Create(); |
110 } | 110 } |
111 | 111 |
OLD | NEW |