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

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

Issue 858123002: Add specialized content key class for resources. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove default template arg Created 5 years, 11 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/GrResourceKey.h ('k') | include/gpu/GrTypes.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 "SkPoint.h" 13 #include "SkPoint.h"
14 #include "SkRefCnt.h" 14 #include "SkRefCnt.h"
15 15
16 class GrResourceKey;
17 class GrTextureParams; 16 class GrTextureParams;
18 class GrTexturePriv; 17 class GrTexturePriv;
19 18
20 class GrTexture : virtual public GrSurface { 19 class GrTexture : virtual public GrSurface {
21 public: 20 public:
22 GrTexture* asTexture() SK_OVERRIDE { return this; } 21 GrTexture* asTexture() SK_OVERRIDE { return this; }
23 const GrTexture* asTexture() const SK_OVERRIDE { return this; } 22 const GrTexture* asTexture() const SK_OVERRIDE { return this; }
24 23
25 /** 24 /**
26 * Return the native ID or handle to the texture, depending on the 25 * Return the native ID or handle to the texture, depending on the
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 fTexture.reset(SkSafeRef(texture)); 103 fTexture.reset(SkSafeRef(texture));
105 return texture; 104 return texture;
106 } 105 }
107 106
108 private: 107 private:
109 SkAutoTUnref<GrTexture> fTexture; 108 SkAutoTUnref<GrTexture> fTexture;
110 SkIPoint fOffset; 109 SkIPoint fOffset;
111 }; 110 };
112 111
113 #endif 112 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrResourceKey.h ('k') | include/gpu/GrTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698