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

Side by Side Diff: src/gpu/effects/GrTextureStripAtlas.cpp

Issue 682223002: rename GrTextureDesc->GrSurfaceDesc, GrTextureFlags->GrSurfaceFlags (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: const Created 6 years, 1 month 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/effects/GrConfigConversionEffect.cpp ('k') | src/gpu/gl/GrGLRenderTarget.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 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrTextureStripAtlas.h" 9 #include "GrTextureStripAtlas.h"
10 #include "SkPixelRef.h" 10 #include "SkPixelRef.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 184 }
185 185
186 GrTextureStripAtlas::AtlasRow* GrTextureStripAtlas::getLRU() { 186 GrTextureStripAtlas::AtlasRow* GrTextureStripAtlas::getLRU() {
187 // Front is least-recently-used 187 // Front is least-recently-used
188 AtlasRow* row = fLRUFront; 188 AtlasRow* row = fLRUFront;
189 return row; 189 return row;
190 } 190 }
191 191
192 void GrTextureStripAtlas::lockTexture() { 192 void GrTextureStripAtlas::lockTexture() {
193 GrTextureParams params; 193 GrTextureParams params;
194 GrTextureDesc texDesc; 194 GrSurfaceDesc texDesc;
195 texDesc.fWidth = fDesc.fWidth; 195 texDesc.fWidth = fDesc.fWidth;
196 texDesc.fHeight = fDesc.fHeight; 196 texDesc.fHeight = fDesc.fHeight;
197 texDesc.fConfig = fDesc.fConfig; 197 texDesc.fConfig = fDesc.fConfig;
198 198
199 static const GrCacheID::Domain gTextureStripAtlasDomain = GrCacheID::Generat eDomain(); 199 static const GrCacheID::Domain gTextureStripAtlasDomain = GrCacheID::Generat eDomain();
200 GrCacheID::Key key; 200 GrCacheID::Key key;
201 *key.fData32 = fCacheKey; 201 *key.fData32 = fCacheKey;
202 memset(key.fData32 + 1, 0, sizeof(key) - sizeof(uint32_t)); 202 memset(key.fData32 + 1, 0, sizeof(key) - sizeof(uint32_t));
203 GrCacheID cacheID(gTextureStripAtlasDomain, key); 203 GrCacheID cacheID(gTextureStripAtlasDomain, key);
204 204
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 // If we have locked rows, we should have a locked texture, otherwise 339 // If we have locked rows, we should have a locked texture, otherwise
340 // it should be unlocked 340 // it should be unlocked
341 if (fLockedRows == 0) { 341 if (fLockedRows == 0) {
342 SkASSERT(NULL == fTexture); 342 SkASSERT(NULL == fTexture);
343 } else { 343 } else {
344 SkASSERT(fTexture); 344 SkASSERT(fTexture);
345 } 345 }
346 } 346 }
347 #endif 347 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrConfigConversionEffect.cpp ('k') | src/gpu/gl/GrGLRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698