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

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

Issue 578563002: Remove createPath* from GrGpu and GrContext (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_glyphmemorypath
Patch Set: Simple quick change Created 6 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/GrContext.cpp ('k') | src/gpu/GrGpu.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 2011 Google Inc. 2 * Copyright 2011 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 GrGpu_DEFINED 8 #ifndef GrGpu_DEFINED
9 #define GrGpu_DEFINED 9 #define GrGpu_DEFINED
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 * @param size size in bytes of the index buffer 136 * @param size size in bytes of the index buffer
137 * @param dynamic hints whether the data will be frequently changed 137 * @param dynamic hints whether the data will be frequently changed
138 * by either GrIndexBuffer::map() or 138 * by either GrIndexBuffer::map() or
139 * GrIndexBuffer::updateData(). 139 * GrIndexBuffer::updateData().
140 * 140 *
141 * @return The index buffer if successful, otherwise NULL. 141 * @return The index buffer if successful, otherwise NULL.
142 */ 142 */
143 GrIndexBuffer* createIndexBuffer(size_t size, bool dynamic); 143 GrIndexBuffer* createIndexBuffer(size_t size, bool dynamic);
144 144
145 /** 145 /**
146 * Creates a path object that can be stenciled using stencilPath(). It is
147 * only legal to call this if the caps report support for path stenciling.
148 */
149 GrPath* createPath(const SkPath& path, const SkStrokeRec& stroke);
150
151 /**
152 * Creates a path range object that can be used to draw multiple paths via
153 * drawPaths(). It is only legal to call this if the caps report support for
154 * path rendering.
155 */
156 GrPathRange* createPathRange(size_t size, const SkStrokeRec&);
157
158 /**
159 * Returns an index buffer that can be used to render quads. 146 * Returns an index buffer that can be used to render quads.
160 * Six indices per quad: 0, 1, 2, 0, 2, 3, etc. 147 * Six indices per quad: 0, 1, 2, 0, 2, 3, etc.
161 * The max number of quads can be queried using GrIndexBuffer::maxQuads(). 148 * The max number of quads can be queried using GrIndexBuffer::maxQuads().
162 * Draw with kTriangles_GrPrimitiveType 149 * Draw with kTriangles_GrPrimitiveType
163 * @ return the quad index buffer 150 * @ return the quad index buffer
164 */ 151 */
165 const GrIndexBuffer* getQuadIndexBuffer() const; 152 const GrIndexBuffer* getQuadIndexBuffer() const;
166 153
167 /** 154 /**
168 * Resolves MSAA. 155 * Resolves MSAA.
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // counts number of uses of vertex/index pool in the geometry stack 505 // counts number of uses of vertex/index pool in the geometry stack
519 int fVertexP oolUseCnt; 506 int fVertexP oolUseCnt;
520 int fIndexPo olUseCnt; 507 int fIndexPo olUseCnt;
521 // these are mutable so they can be created on-demand 508 // these are mutable so they can be created on-demand
522 mutable GrIndexBuffer* fQuadInd exBuffer; 509 mutable GrIndexBuffer* fQuadInd exBuffer;
523 510
524 typedef GrDrawTarget INHERITED; 511 typedef GrDrawTarget INHERITED;
525 }; 512 };
526 513
527 #endif 514 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698