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