| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrTextureProvider_DEFINED | 8 #ifndef GrTextureProvider_DEFINED |
| 9 #define GrTextureProvider_DEFINED | 9 #define GrTextureProvider_DEFINED |
| 10 | 10 |
| 11 #include "GrTexture.h" | 11 #include "GrTexture.h" |
| 12 #include "GrTypes.h" | 12 #include "GrTypes.h" |
| 13 #include "SkImageFilter.h" | |
| 14 | 13 |
| 15 class GrSingleOwner; | 14 class GrSingleOwner; |
| 16 | 15 |
| 17 class SK_API GrTextureProvider { | 16 class SK_API GrTextureProvider { |
| 18 public: | 17 public: |
| 19 /////////////////////////////////////////////////////////////////////////// | 18 /////////////////////////////////////////////////////////////////////////// |
| 20 // Textures | 19 // Textures |
| 21 | 20 |
| 22 /** | 21 /** |
| 23 * Creates a new texture in the resource cache and returns it. The caller ow
ns a | 22 * Creates a new texture in the resource cache and returns it. The caller ow
ns a |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 164 |
| 166 private: | 165 private: |
| 167 GrResourceCache* fCache; | 166 GrResourceCache* fCache; |
| 168 GrGpu* fGpu; | 167 GrGpu* fGpu; |
| 169 | 168 |
| 170 // In debug builds we guard against improper thread handling | 169 // In debug builds we guard against improper thread handling |
| 171 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) | 170 SkDEBUGCODE(mutable GrSingleOwner* fSingleOwner;) |
| 172 }; | 171 }; |
| 173 | 172 |
| 174 #endif | 173 #endif |
| OLD | NEW |