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

Side by Side Diff: src/gpu/GrTexture.cpp

Issue 672753002: Delete unused method aliases and texture flag. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again 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
« no previous file with comments | « include/gpu/GrTypes.h ('k') | no next file » | 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 2011 Google Inc. 3 * Copyright 2011 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 9
10 #include "GrContext.h" 10 #include "GrContext.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 if (this->texturePriv().hasMipMaps()) { 48 if (this->texturePriv().hasMipMaps()) {
49 // We don't have to worry about the mipmaps being a different size than 49 // We don't have to worry about the mipmaps being a different size than
50 // we'd expect because we never change fDesc.fWidth/fHeight. 50 // we'd expect because we never change fDesc.fWidth/fHeight.
51 textureSize *= 2; 51 textureSize *= 2;
52 } 52 }
53 return textureSize; 53 return textureSize;
54 } 54 }
55 55
56 void GrTexture::onRelease() { 56 void GrTexture::onRelease() {
57 SkASSERT(!this->texturePriv().isSetFlag((GrTextureFlags) kReturnToCache_Flag Bit)); 57
58 INHERITED::onRelease(); 58 INHERITED::onRelease();
59 } 59 }
60 60
61 void GrTexture::onAbandon() { 61 void GrTexture::onAbandon() {
62 if (fRenderTarget.get()) { 62 if (fRenderTarget.get()) {
63 fRenderTarget->abandon(); 63 fRenderTarget->abandon();
64 } 64 }
65 INHERITED::onAbandon(); 65 INHERITED::onAbandon();
66 } 66 }
67 67
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 return GrResourceKey(cacheID, ResourceType(), 0); 175 return GrResourceKey(cacheID, ResourceType(), 0);
176 } 176 }
177 177
178 bool GrTexturePriv::NeedsResizing(const GrResourceKey& key) { 178 bool GrTexturePriv::NeedsResizing(const GrResourceKey& key) {
179 return SkToBool(key.getResourceFlags() & kStretchToPOT_TextureFlag); 179 return SkToBool(key.getResourceFlags() & kStretchToPOT_TextureFlag);
180 } 180 }
181 181
182 bool GrTexturePriv::NeedsBilerp(const GrResourceKey& key) { 182 bool GrTexturePriv::NeedsBilerp(const GrResourceKey& key) {
183 return SkToBool(key.getResourceFlags() & kBilerp_TextureFlag); 183 return SkToBool(key.getResourceFlags() & kBilerp_TextureFlag);
184 } 184 }
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698