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

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

Issue 608883003: GrResourceCache2 manages scratch texture. (Closed) Base URL: https://skia.googlesource.com/skia.git@surfimpl
Patch Set: wrap line and delete unneeded friends 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
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 virtual ~GrTexture(); 92 virtual ~GrTexture();
93 93
94 // GrResource overrides 94 // GrResource overrides
95 virtual void onRelease() SK_OVERRIDE; 95 virtual void onRelease() SK_OVERRIDE;
96 virtual void onAbandon() SK_OVERRIDE; 96 virtual void onAbandon() SK_OVERRIDE;
97 97
98 void validateDesc() const; 98 void validateDesc() const;
99 99
100 private: 100 private:
101 void abandonReleaseCommon();
102 virtual void internal_dispose() const SK_OVERRIDE;
103
104 enum MipMapsStatus { 101 enum MipMapsStatus {
105 kNotAllocated_MipMapsStatus, 102 kNotAllocated_MipMapsStatus,
106 kAllocated_MipMapsStatus, 103 kAllocated_MipMapsStatus,
107 kValid_MipMapsStatus 104 kValid_MipMapsStatus
108 }; 105 };
109 106
110 MipMapsStatus fMipMapsStatus; 107 MipMapsStatus fMipMapsStatus;
111 int fShiftFixedX; 108 int fShiftFixedX;
112 int fShiftFixedY; 109 int fShiftFixedY;
113 110
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 fTexture.reset(SkSafeRef(texture)); 146 fTexture.reset(SkSafeRef(texture));
150 return texture; 147 return texture;
151 } 148 }
152 149
153 private: 150 private:
154 SkAutoTUnref<GrTexture> fTexture; 151 SkAutoTUnref<GrTexture> fTexture;
155 SkIPoint fOffset; 152 SkIPoint fOffset;
156 }; 153 };
157 154
158 #endif 155 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698