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

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

Issue 12469002: Removed unused parameters (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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/effects/GrTextureDomainEffect.cpp ('k') | src/image/SkSurface_Gpu.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 16 matching lines...) Expand all
27 GrTextureStripAtlas::GetCache() { 27 GrTextureStripAtlas::GetCache() {
28 28
29 if (NULL == gAtlasCache) { 29 if (NULL == gAtlasCache) {
30 gAtlasCache = SkNEW((GrTHashTable<AtlasEntry, AtlasHashKey, 8>)); 30 gAtlasCache = SkNEW((GrTHashTable<AtlasEntry, AtlasHashKey, 8>));
31 } 31 }
32 32
33 return gAtlasCache; 33 return gAtlasCache;
34 } 34 }
35 35
36 // Remove the specified atlas from the cache 36 // Remove the specified atlas from the cache
37 void GrTextureStripAtlas::CleanUp(const GrContext* context, void* info) { 37 void GrTextureStripAtlas::CleanUp(const GrContext*, void* info) {
38 GrAssert(NULL != info); 38 GrAssert(NULL != info);
39 39
40 AtlasEntry* entry = static_cast<AtlasEntry*>(info); 40 AtlasEntry* entry = static_cast<AtlasEntry*>(info);
41 41
42 // remove the cache entry 42 // remove the cache entry
43 GetCache()->remove(entry->fKey, entry); 43 GetCache()->remove(entry->fKey, entry);
44 44
45 // remove the actual entry 45 // remove the actual entry
46 SkDELETE(entry); 46 SkDELETE(entry);
47 47
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 // If we have locked rows, we should have a locked texture, otherwise 338 // If we have locked rows, we should have a locked texture, otherwise
339 // it should be unlocked 339 // it should be unlocked
340 if (fLockedRows == 0) { 340 if (fLockedRows == 0) {
341 GrAssert(NULL == fTexture); 341 GrAssert(NULL == fTexture);
342 } else { 342 } else {
343 GrAssert(NULL != fTexture); 343 GrAssert(NULL != fTexture);
344 } 344 }
345 } 345 }
346 #endif 346 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrTextureDomainEffect.cpp ('k') | src/image/SkSurface_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698