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

Side by Side Diff: src/gpu/GrGeometryProcessor.h

Issue 745663002: Adding GeometryData object (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 6 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/GrGeometryData.h ('k') | src/gpu/GrProcessor.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 GrGeometryProcessor_DEFINED 8 #ifndef GrGeometryProcessor_DEFINED
9 #define GrGeometryProcessor_DEFINED 9 #define GrGeometryProcessor_DEFINED
10 10
11 #include "GrGeometryData.h"
11 #include "GrProcessor.h" 12 #include "GrProcessor.h"
12 #include "GrShaderVar.h" 13 #include "GrShaderVar.h"
13 14
14 /** 15 /**
15 * A GrGeomteryProcessor is used to perform computation in the vertex shader and 16 * A GrGeomteryProcessor is used to perform computation in the vertex shader and
16 * add support for custom vertex attributes. A GrGemeotryProcessor is typically 17 * add support for custom vertex attributes. A GrGemeotryProcessor is typically
17 * tied to the code that does a specific type of high-level primitive rendering 18 * tied to the code that does a specific type of high-level primitive rendering
18 * (e.g. anti-aliased circle rendering). The GrGeometryProcessor used for a draw is 19 * (e.g. anti-aliased circle rendering). The GrGeometryProcessor used for a draw is
19 * specified using GrDrawState. There can only be one geometry processor active for 20 * specified using GrDrawState. There can only be one geometry processor active for
20 * a draw. The custom vertex attributes required by the geometry processor must be 21 * a draw. The custom vertex attributes required by the geometry processor must be
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 private: 70 private:
70 virtual bool onIsEqual(const GrGeometryProcessor&) const = 0; 71 virtual bool onIsEqual(const GrGeometryProcessor&) const = 0;
71 72
72 SkSTArray<kMaxVertexAttribs, GrShaderVar, true> fVertexAttribs; 73 SkSTArray<kMaxVertexAttribs, GrShaderVar, true> fVertexAttribs;
73 bool fWillUseGeoShader; 74 bool fWillUseGeoShader;
74 75
75 typedef GrProcessor INHERITED; 76 typedef GrProcessor INHERITED;
76 }; 77 };
77 78
78 #endif 79 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGeometryData.h ('k') | src/gpu/GrProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698