OLD | NEW |
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 GrColorProcessor_DEFINED | 8 #ifndef GrColorProcessor_DEFINED |
9 #define GrColorProcessor_DEFINED | 9 #define GrColorProcessor_DEFINED |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 GrColor color() const { return fColor; } | 35 GrColor color() const { return fColor; } |
36 | 36 |
37 InputMode inputMode() const { return fMode; } | 37 InputMode inputMode() const { return fMode; } |
38 | 38 |
39 private: | 39 private: |
40 GrConstColorProcessor(GrColor color, InputMode mode) : fColor(color), fMode(
mode) { | 40 GrConstColorProcessor(GrColor color, InputMode mode) : fColor(color), fMode(
mode) { |
41 this->initClassID<GrConstColorProcessor>(); | 41 this->initClassID<GrConstColorProcessor>(); |
42 } | 42 } |
43 | 43 |
44 GrGLSLFragmentProcessor* onCreateGLInstance() const override; | 44 GrGLSLFragmentProcessor* onCreateGLSLInstance() const override; |
45 | 45 |
46 void onGetGLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const ov
erride; | 46 void onGetGLSLProcessorKey(const GrGLSLCaps&, GrProcessorKeyBuilder*) const
override; |
47 | 47 |
48 bool onIsEqual(const GrFragmentProcessor&) const override; | 48 bool onIsEqual(const GrFragmentProcessor&) const override; |
49 | 49 |
50 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; | 50 void onComputeInvariantOutput(GrInvariantOutput* inout) const override; |
51 | 51 |
52 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; | 52 GR_DECLARE_FRAGMENT_PROCESSOR_TEST; |
53 | 53 |
54 GrColor fColor; | 54 GrColor fColor; |
55 InputMode fMode; | 55 InputMode fMode; |
56 | 56 |
57 typedef GrFragmentProcessor INHERITED; | 57 typedef GrFragmentProcessor INHERITED; |
58 }; | 58 }; |
59 | 59 |
60 #endif | 60 #endif |
OLD | NEW |