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

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

Issue 422323002: Some fixes around GrContext::abandonContext: (Closed) Base URL: https://skia.googlesource.com/skia.git@abandon
Patch Set: Address comments Created 6 years, 4 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/GrContextFactory.h ('k') | include/gpu/gl/GrGLInterface.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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 virtual ~GrTexture(); 113 virtual ~GrTexture();
114 114
115 // GrResource overrides 115 // GrResource overrides
116 virtual void onRelease() SK_OVERRIDE; 116 virtual void onRelease() SK_OVERRIDE;
117 virtual void onAbandon() SK_OVERRIDE; 117 virtual void onAbandon() SK_OVERRIDE;
118 118
119 void validateDesc() const; 119 void validateDesc() const;
120 120
121 private: 121 private:
122 void abandonReleaseCommon();
122 virtual void internal_dispose() const SK_OVERRIDE; 123 virtual void internal_dispose() const SK_OVERRIDE;
123 124
124 // these two shift a fixed-point value into normalized coordinates 125 // these two shift a fixed-point value into normalized coordinates
125 // for this texture if the texture is power of two sized. 126 // for this texture if the texture is power of two sized.
126 int fShiftFixedX; 127 int fShiftFixedX;
127 int fShiftFixedY; 128 int fShiftFixedY;
128 129
129 typedef GrSurface INHERITED; 130 typedef GrSurface INHERITED;
130 }; 131 };
131 132
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 fTexture.reset(SkSafeRef(texture)); 213 fTexture.reset(SkSafeRef(texture));
213 return texture; 214 return texture;
214 } 215 }
215 216
216 private: 217 private:
217 SkAutoTUnref<GrTexture> fTexture; 218 SkAutoTUnref<GrTexture> fTexture;
218 SkIPoint fOffset; 219 SkIPoint fOffset;
219 }; 220 };
220 221
221 #endif 222 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrContextFactory.h ('k') | include/gpu/gl/GrGLInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698