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

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

Issue 275493004: Rename from "(un)lock" to "(un)map" for geometry buffers. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address Rob's comments Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrGeometryBuffer.h ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 /** 94 /**
95 * Implements GrContext::wrapBackendTexture 95 * Implements GrContext::wrapBackendTexture
96 */ 96 */
97 GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&); 97 GrRenderTarget* wrapBackendRenderTarget(const GrBackendRenderTargetDesc&);
98 98
99 /** 99 /**
100 * Creates a vertex buffer. 100 * Creates a vertex buffer.
101 * 101 *
102 * @param size size in bytes of the vertex buffer 102 * @param size size in bytes of the vertex buffer
103 * @param dynamic hints whether the data will be frequently changed 103 * @param dynamic hints whether the data will be frequently changed
104 * by either GrVertexBuffer::lock or 104 * by either GrVertexBuffer::map() or
105 * GrVertexBuffer::updateData. 105 * GrVertexBuffer::updateData().
106 * 106 *
107 * @return The vertex buffer if successful, otherwise NULL. 107 * @return The vertex buffer if successful, otherwise NULL.
108 */ 108 */
109 GrVertexBuffer* createVertexBuffer(size_t size, bool dynamic); 109 GrVertexBuffer* createVertexBuffer(size_t size, bool dynamic);
110 110
111 /** 111 /**
112 * Creates an index buffer. 112 * Creates an index buffer.
113 * 113 *
114 * @param size size in bytes of the index buffer 114 * @param size size in bytes of the index buffer
115 * @param dynamic hints whether the data will be frequently changed 115 * @param dynamic hints whether the data will be frequently changed
116 * by either GrIndexBuffer::lock or 116 * by either GrIndexBuffer::map() or
117 * GrIndexBuffer::updateData. 117 * GrIndexBuffer::updateData().
118 * 118 *
119 * @return The index buffer if successful, otherwise NULL. 119 * @return The index buffer if successful, otherwise NULL.
120 */ 120 */
121 GrIndexBuffer* createIndexBuffer(size_t size, bool dynamic); 121 GrIndexBuffer* createIndexBuffer(size_t size, bool dynamic);
122 122
123 /** 123 /**
124 * Creates a path object that can be stenciled using stencilPath(). It is 124 * Creates a path object that can be stenciled using stencilPath(). It is
125 * only legal to call this if the caps report support for path stenciling. 125 * only legal to call this if the caps report support for path stenciling.
126 */ 126 */
127 GrPath* createPath(const SkPath& path, const SkStrokeRec& stroke); 127 GrPath* createPath(const SkPath& path, const SkStrokeRec& stroke);
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 // these are mutable so they can be created on-demand 514 // these are mutable so they can be created on-demand
515 mutable GrIndexBuffer* fQuadInd exBuffer; 515 mutable GrIndexBuffer* fQuadInd exBuffer;
516 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his 516 // Used to abandon/release all resources created by this GrGpu. TODO: Move t his
517 // functionality to GrResourceCache. 517 // functionality to GrResourceCache.
518 ObjectList fObjectL ist; 518 ObjectList fObjectL ist;
519 519
520 typedef GrDrawTarget INHERITED; 520 typedef GrDrawTarget INHERITED;
521 }; 521 };
522 522
523 #endif 523 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrGeometryBuffer.h ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698