| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |