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

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

Issue 778453002: Remove backend factories (Closed) Base URL: https://skia.googlesource.com/skia.git@unichoice
Patch Set: more clang warnings Created 6 years 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/effects/GrYUVtoRGBEffect.cpp ('k') | src/gpu/gl/GrGLProcessor.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 2013 Google Inc. 2 * Copyright 2013 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 GrGLGeometryProcessor_DEFINED 8 #ifndef GrGLGeometryProcessor_DEFINED
9 #define GrGLGeometryProcessor_DEFINED 9 #define GrGLGeometryProcessor_DEFINED
10 10
11 #include "GrGLProcessor.h" 11 #include "GrGLProcessor.h"
12 12
13 class GrBatchTracker; 13 class GrBatchTracker;
14 class GrGLGPBuilder; 14 class GrGLGPBuilder;
15 15
16 /** 16 /**
17 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the n it must inherit 17 * If a GL effect needs a GrGLFullShaderBuilder* object to emit vertex code, the n it must inherit
18 * from this class. Since paths don't have vertices, this class is only meant to be used internally 18 * from this class. Since paths don't have vertices, this class is only meant to be used internally
19 * by skia, for special cases. 19 * by skia, for special cases.
20 */ 20 */
21 class GrGLGeometryProcessor : public GrGLProcessor { 21 class GrGLGeometryProcessor {
22 public: 22 public:
23 GrGLGeometryProcessor(const GrBackendProcessorFactory& factory) 23 GrGLGeometryProcessor() {}
24 : INHERITED(factory) {} 24 virtual ~GrGLGeometryProcessor() {}
25 25
26 typedef GrGLProcessor::TextureSamplerArray TextureSamplerArray;
26 struct EmitArgs { 27 struct EmitArgs {
27 EmitArgs(GrGLGPBuilder* pb, 28 EmitArgs(GrGLGPBuilder* pb,
28 const GrGeometryProcessor& gp, 29 const GrGeometryProcessor& gp,
29 const GrBatchTracker& bt, 30 const GrBatchTracker& bt,
30 const char* outputColor, 31 const char* outputColor,
31 const char* outputCoverage, 32 const char* outputCoverage,
32 const TextureSamplerArray& samplers) 33 const TextureSamplerArray& samplers)
33 : fPB(pb) 34 : fPB(pb)
34 , fGP(gp) 35 , fGP(gp)
35 , fBT(bt) 36 , fBT(bt)
(...skipping 20 matching lines...) Expand all
56 to have an identical processor key as the one that created this GrGLGeom etryProcessor. */ 57 to have an identical processor key as the one that created this GrGLGeom etryProcessor. */
57 virtual void setData(const GrGLProgramDataManager&, 58 virtual void setData(const GrGLProgramDataManager&,
58 const GrGeometryProcessor&, 59 const GrGeometryProcessor&,
59 const GrBatchTracker&) = 0; 60 const GrBatchTracker&) = 0;
60 61
61 private: 62 private:
62 typedef GrGLProcessor INHERITED; 63 typedef GrGLProcessor INHERITED;
63 }; 64 };
64 65
65 #endif 66 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrYUVtoRGBEffect.cpp ('k') | src/gpu/gl/GrGLProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698