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

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

Issue 1332923003: Remove batchtracker (Closed) Base URL: https://skia.googlesource.com/skia.git@latecreatepathprocessor
Patch Set: tweaks Created 5 years, 3 months 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/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLPathProcessor.cpp » ('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 GrGLPathProcessor_DEFINED 8 #ifndef GrGLPathProcessor_DEFINED
9 #define GrGLPathProcessor_DEFINED 9 #define GrGLPathProcessor_DEFINED
10 10
11 #include "GrGLPrimitiveProcessor.h" 11 #include "GrGLPrimitiveProcessor.h"
12 12
13 class GrPathProcessor; 13 class GrPathProcessor;
14 class GrGLPathRendering; 14 class GrGLPathRendering;
15 class GrGLGpu; 15 class GrGLGpu;
16 class GrGLPathProgramDataManager; 16 class GrGLPathProgramDataManager;
17 17
18 class GrGLPathProcessor : public GrGLPrimitiveProcessor { 18 class GrGLPathProcessor : public GrGLPrimitiveProcessor {
19 public: 19 public:
20 GrGLPathProcessor(const GrPathProcessor&, const GrBatchTracker&); 20 GrGLPathProcessor();
21 21
22 static void GenKey(const GrPathProcessor&, 22 static void GenKey(const GrPathProcessor&,
23 const GrBatchTracker& bt,
24 const GrGLSLCaps&, 23 const GrGLSLCaps&,
25 GrProcessorKeyBuilder* b); 24 GrProcessorKeyBuilder* b);
26 25
27 void emitCode(EmitArgs&) override; 26 void emitCode(EmitArgs&) override;
28 27
29 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*); 28 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*);
30 29
31 void bindSeparableVaryings(GrGLGpu* gpu, GrGLuint programID); 30 void bindSeparableVaryings(GrGLGpu* gpu, GrGLuint programID);
32 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId); 31 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId);
33 32
34 void setData(const GrGLProgramDataManager&, 33 void setData(const GrGLProgramDataManager&, const GrPrimitiveProcessor&) ove rride;
35 const GrPrimitiveProcessor&,
36 const GrBatchTracker&) override;
37 34
38 void setTransformData(const GrPrimitiveProcessor&, 35 void setTransformData(const GrPrimitiveProcessor&,
39 const GrGLPathProgramDataManager&, 36 const GrGLPathProgramDataManager&,
40 int index, 37 int index,
41 const SkTArray<const GrCoordTransform*, true>& transfo rms); 38 const SkTArray<const GrCoordTransform*, true>& transfo rms);
42 39
43 virtual void didSetData(GrGLPathRendering*) {} 40 virtual void didSetData(GrGLPathRendering*) {}
44 41
45 private: 42 private:
46 UniformHandle fColorUniform; 43 UniformHandle fColorUniform;
47 GrColor fColor; 44 GrColor fColor;
48 45
49 typedef GrGLPrimitiveProcessor INHERITED; 46 typedef GrGLPrimitiveProcessor INHERITED;
50 }; 47 };
51 48
52 #endif 49 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/gl/GrGLPathProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698