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/GrGLPathProcessor.h

Issue 1109863004: Use GLSLCaps for creating processor keys and GLSL-specific programs (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Created 5 years, 7 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/GrGLCaps.h ('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 16
17 class GrGLPathProcessor : public GrGLPrimitiveProcessor { 17 class GrGLPathProcessor : public GrGLPrimitiveProcessor {
18 public: 18 public:
19 GrGLPathProcessor(const GrPathProcessor&, const GrBatchTracker&); 19 GrGLPathProcessor(const GrPathProcessor&, const GrBatchTracker&);
20 20
21 static void GenKey(const GrPathProcessor&, 21 static void GenKey(const GrPathProcessor&,
22 const GrBatchTracker& bt, 22 const GrBatchTracker& bt,
23 const GrGLCaps&, 23 const GrGLSLCaps&,
24 GrProcessorKeyBuilder* b); 24 GrProcessorKeyBuilder* b);
25 25
26 void emitCode(EmitArgs&) override; 26 void emitCode(EmitArgs&) override;
27 27
28 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*); 28 void emitTransforms(GrGLGPBuilder*, const TransformsIn&, TransformsOut*);
29 29
30 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId); 30 void resolveSeparableVaryings(GrGLGpu* gpu, GrGLuint programId);
31 31
32 void setData(const GrGLProgramDataManager&, 32 void setData(const GrGLProgramDataManager&,
33 const GrPrimitiveProcessor&, 33 const GrPrimitiveProcessor&,
(...skipping 17 matching lines...) Expand all
51 }; 51 };
52 52
53 typedef SkSTArray<8, SeparableVaryingInfo, true> SeparableVaryingInfoArray; 53 typedef SkSTArray<8, SeparableVaryingInfo, true> SeparableVaryingInfoArray;
54 54
55 SeparableVaryingInfoArray fSeparableVaryingInfos; 55 SeparableVaryingInfoArray fSeparableVaryingInfos;
56 56
57 typedef GrGLPrimitiveProcessor INHERITED; 57 typedef GrGLPrimitiveProcessor INHERITED;
58 }; 58 };
59 59
60 #endif 60 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.h ('k') | src/gpu/gl/GrGLPathProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698