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

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

Issue 664193002: Oval and stroke AA rect now batch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 2 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
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 * 135 *
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 //TODO comment
146 GrIndexBuffer* createIndexBufferPattern(const uint16_t* pattern,
bsalomon 2014/10/22 17:51:50 I like this... but maybe we should call it createI
147 int patternSize,
148 int reps,
149 int vertCount,
150 bool isDynamic = false);
151
145 /** 152 /**
146 * Returns an index buffer that can be used to render quads. 153 * Returns an index buffer that can be used to render quads.
147 * Six indices per quad: 0, 1, 2, 0, 2, 3, etc. 154 * Six indices per quad: 0, 1, 2, 0, 2, 3, etc.
148 * The max number of quads can be queried using GrIndexBuffer::maxQuads(). 155 * The max number of quads can be queried using GrIndexBuffer::maxQuads().
149 * Draw with kTriangles_GrPrimitiveType 156 * Draw with kTriangles_GrPrimitiveType
150 * @ return the quad index buffer 157 * @ return the quad index buffer
151 */ 158 */
152 const GrIndexBuffer* getQuadIndexBuffer() const; 159 const GrIndexBuffer* getQuadIndexBuffer() const;
153 160
154 /** 161 /**
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // counts number of uses of vertex/index pool in the geometry stack 516 // counts number of uses of vertex/index pool in the geometry stack
510 int fVertexP oolUseCnt; 517 int fVertexP oolUseCnt;
511 int fIndexPo olUseCnt; 518 int fIndexPo olUseCnt;
512 // these are mutable so they can be created on-demand 519 // these are mutable so they can be created on-demand
513 mutable GrIndexBuffer* fQuadInd exBuffer; 520 mutable GrIndexBuffer* fQuadInd exBuffer;
514 521
515 typedef GrDrawTarget INHERITED; 522 typedef GrDrawTarget INHERITED;
516 }; 523 };
517 524
518 #endif 525 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrAARectRenderer.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | src/gpu/GrGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698