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

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

Issue 746253003: Add IndexType parameter to GrDrawTarget::drawPaths (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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/GrStencilAndCoverTextContext.cpp ('k') | src/gpu/gl/GrGLPathRendering.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 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 GrGLPathRendering_DEFINED 8 #ifndef GrGLPathRendering_DEFINED
9 #define GrGLPathRendering_DEFINED 9 #define GrGLPathRendering_DEFINED
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 // GrPathRendering implementations. 35 // GrPathRendering implementations.
36 virtual GrPath* createPath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE; 36 virtual GrPath* createPath(const SkPath&, const SkStrokeRec&) SK_OVERRIDE;
37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, 37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*,
38 const SkStrokeRec&) SK_OVERRIDE; 38 const SkStrokeRec&) SK_OVERRIDE;
39 virtual GrPathRange* createGlyphs(const SkTypeface*, 39 virtual GrPathRange* createGlyphs(const SkTypeface*,
40 const SkDescriptor*, 40 const SkDescriptor*,
41 const SkStrokeRec&) SK_OVERRIDE; 41 const SkStrokeRec&) SK_OVERRIDE;
42 virtual void stencilPath(const GrPath*, const GrStencilSettings&) SK_OVERRID E; 42 virtual void stencilPath(const GrPath*, const GrStencilSettings&) SK_OVERRID E;
43 virtual void drawPath(const GrPath*, const GrStencilSettings&) SK_OVERRIDE; 43 virtual void drawPath(const GrPath*, const GrStencilSettings&) SK_OVERRIDE;
44 virtual void drawPaths(const GrPathRange*, const uint32_t indices[], int cou nt, 44 virtual void drawPaths(const GrPathRange*, const void* indices, PathIndexTyp e,
45 const float transforms[], PathTransformType, 45 const float transformValues[], PathTransformType, int count,
46 const GrStencilSettings&) SK_OVERRIDE; 46 const GrStencilSettings&) SK_OVERRIDE;
47 47
48 /* Called when the 3D context state is unknown. */ 48 /* Called when the 3D context state is unknown. */
49 void resetContext(); 49 void resetContext();
50 50
51 /** 51 /**
52 * Called when the GPU resources have been lost and need to be abandoned 52 * Called when the GPU resources have been lost and need to be abandoned
53 * (for example after a context loss). 53 * (for example after a context loss).
54 */ 54 */
55 void abandonGpuResources(); 55 void abandonGpuResources();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 struct PathTexGenData { 134 struct PathTexGenData {
135 GrGLenum fMode; 135 GrGLenum fMode;
136 GrGLint fNumComponents; 136 GrGLint fNumComponents;
137 GrGLfloat fCoefficients[3 * 3]; 137 GrGLfloat fCoefficients[3 * 3];
138 }; 138 };
139 int fHWActivePathTexGenSets; 139 int fHWActivePathTexGenSets;
140 SkTArray<PathTexGenData, true> fHWPathTexGenSettings; 140 SkTArray<PathTexGenData, true> fHWPathTexGenSettings;
141 }; 141 };
142 142
143 #endif 143 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrStencilAndCoverTextContext.cpp ('k') | src/gpu/gl/GrGLPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698