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

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

Issue 611383003: Revert of GrResourceCache2 manages scratch texture. (Closed) Base URL: https://skia.googlesource.com/skia.git@surfimpl
Patch Set: 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/GrGpuResource.h ('k') | include/gpu/SkGr.h » ('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 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 #ifndef GrTexture_DEFINED 9 #ifndef GrTexture_DEFINED
10 #define GrTexture_DEFINED 10 #define GrTexture_DEFINED
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 virtual ~GrTexture(); 93 virtual ~GrTexture();
94 94
95 // GrResource overrides 95 // GrResource overrides
96 virtual void onRelease() SK_OVERRIDE; 96 virtual void onRelease() SK_OVERRIDE;
97 virtual void onAbandon() SK_OVERRIDE; 97 virtual void onAbandon() SK_OVERRIDE;
98 98
99 void validateDesc() const; 99 void validateDesc() const;
100 100
101 private: 101 private:
102 void abandonReleaseCommon();
103 virtual void internal_dispose() const SK_OVERRIDE;
102 void dirtyMipMaps(bool mipMapsDirty); 104 void dirtyMipMaps(bool mipMapsDirty);
103 105
104 enum MipMapsStatus { 106 enum MipMapsStatus {
105 kNotAllocated_MipMapsStatus, 107 kNotAllocated_MipMapsStatus,
106 kAllocated_MipMapsStatus, 108 kAllocated_MipMapsStatus,
107 kValid_MipMapsStatus 109 kValid_MipMapsStatus
108 }; 110 };
109 111
110 MipMapsStatus fMipMapsStatus; 112 MipMapsStatus fMipMapsStatus;
111 // These two shift a fixed-point value into normalized coordinates 113 // These two shift a fixed-point value into normalized coordinates
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 fTexture.reset(SkSafeRef(texture)); 153 fTexture.reset(SkSafeRef(texture));
152 return texture; 154 return texture;
153 } 155 }
154 156
155 private: 157 private:
156 SkAutoTUnref<GrTexture> fTexture; 158 SkAutoTUnref<GrTexture> fTexture;
157 SkIPoint fOffset; 159 SkIPoint fOffset;
158 }; 160 };
159 161
160 #endif 162 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrGpuResource.h ('k') | include/gpu/SkGr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698