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

Side by Side Diff: src/gpu/gl/GrGLXferProcessor.h

Issue 1425013003: Remove GrGLProcessor and create GrGLSLTextureSampler class. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove grglprocessor from gyp Created 5 years, 1 month 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 | « src/gpu/gl/GrGLProgram.h ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.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 GrGLXferProcessor_DEFINED 8 #ifndef GrGLXferProcessor_DEFINED
9 #define GrGLXferProcessor_DEFINED 9 #define GrGLXferProcessor_DEFINED
10 10
11 #include "GrGLProcessor.h"
12 #include "glsl/GrGLSLProgramDataManager.h" 11 #include "glsl/GrGLSLProgramDataManager.h"
12 #include "glsl/GrGLSLTextureSampler.h"
13 13
14 class GrGLXPBuilder; 14 class GrGLXPBuilder;
15 class GrXferProcessor; 15 class GrXferProcessor;
16 16
17 class GrGLXferProcessor { 17 class GrGLXferProcessor {
18 public: 18 public:
19 GrGLXferProcessor() {} 19 GrGLXferProcessor() {}
20 virtual ~GrGLXferProcessor() {} 20 virtual ~GrGLXferProcessor() {}
21 21
22 typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray; 22 typedef GrGLSLTextureSampler::TextureSamplerArray TextureSamplerArray;
23 struct EmitArgs { 23 struct EmitArgs {
24 EmitArgs(GrGLXPBuilder* pb, 24 EmitArgs(GrGLXPBuilder* pb,
25 const GrXferProcessor& xp, 25 const GrXferProcessor& xp,
26 const char* inputColor, 26 const char* inputColor,
27 const char* inputCoverage, 27 const char* inputCoverage,
28 const char* outputPrimary, 28 const char* outputPrimary,
29 const char* outputSecondary, 29 const char* outputSecondary,
30 const TextureSamplerArray& samplers) 30 const TextureSamplerArray& samplers)
31 : fPB(pb) 31 : fPB(pb)
32 , fXP(xp) 32 , fXP(xp)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 */ 76 */
77 virtual void emitBlendCodeForDstRead(GrGLXPBuilder*, const char* srcColor, c onst char* dstColor, 77 virtual void emitBlendCodeForDstRead(GrGLXPBuilder*, const char* srcColor, c onst char* dstColor,
78 const char* outColor, const GrXferProce ssor&) { 78 const char* outColor, const GrXferProce ssor&) {
79 SkFAIL("emitBlendCodeForDstRead not implemented."); 79 SkFAIL("emitBlendCodeForDstRead not implemented.");
80 } 80 }
81 81
82 virtual void onSetData(const GrGLSLProgramDataManager&, const GrXferProcesso r&) = 0; 82 virtual void onSetData(const GrGLSLProgramDataManager&, const GrXferProcesso r&) = 0;
83 83
84 GrGLSLProgramDataManager::UniformHandle fDstTopLeftUni; 84 GrGLSLProgramDataManager::UniformHandle fDstTopLeftUni;
85 GrGLSLProgramDataManager::UniformHandle fDstScaleUni; 85 GrGLSLProgramDataManager::UniformHandle fDstScaleUni;
86
87 typedef GrGLProcessor INHERITED;
88 }; 86 };
89 #endif 87 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLProgram.h ('k') | src/gpu/gl/builders/GrGLFragmentShaderBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698