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

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

Issue 414013005: Merge GrGpuObject and GrCacheable. (Closed) Base URL: https://skia.googlesource.com/skia.git@uniqueid
Patch Set: Address comments Created 6 years, 5 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/GrGpuObject.h ('k') | src/gpu/GrAtlas.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
11 11
12 #include "GrSurface.h" 12 #include "GrSurface.h"
13 #include "GrRenderTarget.h"
13 #include "SkPoint.h" 14 #include "SkPoint.h"
14 #include "GrRenderTarget.h" 15 #include "SkRefCnt.h"
15 16
16 class GrResourceKey; 17 class GrResourceKey;
17 class GrTextureParams; 18 class GrTextureParams;
18 class GrTextureImpl; 19 class GrTextureImpl;
19 20
20 class GrTexture : public GrSurface { 21 class GrTexture : public GrSurface {
21 public: 22 public:
22 /** 23 /**
23 * Approximate number of bytes used by the texture 24 * Approximate number of bytes used by the texture
24 */ 25 */
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 fTexture.reset(SkSafeRef(texture)); 212 fTexture.reset(SkSafeRef(texture));
212 return texture; 213 return texture;
213 } 214 }
214 215
215 private: 216 private:
216 SkAutoTUnref<GrTexture> fTexture; 217 SkAutoTUnref<GrTexture> fTexture;
217 SkIPoint fOffset; 218 SkIPoint fOffset;
218 }; 219 };
219 220
220 #endif 221 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrGpuObject.h ('k') | src/gpu/GrAtlas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698