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 #ifndef GrGLXferProcessor_DEFINED | 8 #ifndef GrGLXferProcessor_DEFINED |
9 #define GrGLXferProcessor_DEFINED | 9 #define GrGLXferProcessor_DEFINED |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 to have an identical processor key as the one that created this GrGLXfer
Processor. This | 56 to have an identical processor key as the one that created this GrGLXfer
Processor. This |
57 function calls onSetData on the subclass of GrGLXferProcessor | 57 function calls onSetData on the subclass of GrGLXferProcessor |
58 */ | 58 */ |
59 void setData(const GrGLProgramDataManager& pdm, const GrXferProcessor& xp); | 59 void setData(const GrGLProgramDataManager& pdm, const GrXferProcessor& xp); |
60 | 60 |
61 private: | 61 private: |
62 virtual void onEmitCode(const EmitArgs&) = 0; | 62 virtual void onEmitCode(const EmitArgs&) = 0; |
63 | 63 |
64 virtual void onSetData(const GrGLProgramDataManager&, const GrXferProcessor&
) = 0; | 64 virtual void onSetData(const GrGLProgramDataManager&, const GrXferProcessor&
) = 0; |
65 | 65 |
66 GrGLProgramDataManager::UniformHandle fDstTopLeftUni; | 66 GrGLProgramDataManager::UniformHandle fDstCopyTopLeftUni; |
67 GrGLProgramDataManager::UniformHandle fDstScaleUni; | 67 GrGLProgramDataManager::UniformHandle fDstCopyScaleUni; |
68 | 68 |
69 typedef GrGLProcessor INHERITED; | 69 typedef GrGLProcessor INHERITED; |
70 }; | 70 }; |
71 #endif | 71 #endif |
OLD | NEW |