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

Side by Side Diff: include/gpu/GrContext.h

Issue 275493004: Rename from "(un)lock" to "(un)map" for geometry buffers. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright 2010 Google Inc. 2 * Copyright 2010 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 GrContext_DEFINED 8 #ifndef GrContext_DEFINED
9 #define GrContext_DEFINED 9 #define GrContext_DEFINED
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 * implies tightly packed rows. 136 * implies tightly packed rows.
137 * @param cacheKey (optional) If non-NULL, we'll write the cache key we use d to cacheKey. 137 * @param cacheKey (optional) If non-NULL, we'll write the cache key we use d to cacheKey.
138 */ 138 */
139 GrTexture* createTexture(const GrTextureParams* params, 139 GrTexture* createTexture(const GrTextureParams* params,
140 const GrTextureDesc& desc, 140 const GrTextureDesc& desc,
141 const GrCacheID& cacheID, 141 const GrCacheID& cacheID,
142 void* srcData, 142 void* srcData,
143 size_t rowBytes, 143 size_t rowBytes,
144 GrResourceKey* cacheKey = NULL); 144 GrResourceKey* cacheKey = NULL);
145 145
146
147
146 /** 148 /**
147 * Search for an entry based on key and dimensions. If found, ref it and ret urn it. The return 149 * Search for an entry based on key and dimensions. If found, ref it and ret urn it. The return
148 * value will be NULL if not found. The caller must balance with a call to u nref. 150 * value will be NULL if not found. The caller must balance with a call to u nref.
149 * 151 *
150 * @param desc Description of the texture properties. 152 * @param desc Description of the texture properties.
151 * @param cacheID Cache-specific properties (e.g., texture gen ID) 153 * @param cacheID Cache-specific properties (e.g., texture gen ID)
152 * @param params The texture params used to draw a texture may help deter mine 154 * @param params The texture params used to draw a texture may help deter mine
153 * the cache entry used. (e.g. different versions may exist 155 * the cache entry used. (e.g. different versions may exist
154 * for different wrap modes on GPUs with limited NPOT 156 * for different wrap modes on GPUs with limited NPOT
155 * texture support). NULL implies clamp wrap modes. 157 * texture support). NULL implies clamp wrap modes.
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 } 1102 }
1101 1103
1102 GrTexture* texture() { return fTexture; } 1104 GrTexture* texture() { return fTexture; }
1103 1105
1104 private: 1106 private:
1105 GrContext* fContext; 1107 GrContext* fContext;
1106 GrTexture* fTexture; 1108 GrTexture* fTexture;
1107 }; 1109 };
1108 1110
1109 #endif 1111 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698