| Index: include/gpu/GrTextureProvider.h
|
| diff --git a/include/gpu/GrTextureProvider.h b/include/gpu/GrTextureProvider.h
|
| index 28fda48c43e87dbf17d033e6fa37d0f62dc68a57..3a3363874f09b726806f98beb3ee9b922614f8d0 100644
|
| --- a/include/gpu/GrTextureProvider.h
|
| +++ b/include/gpu/GrTextureProvider.h
|
| @@ -9,6 +9,8 @@
|
| #define GrTextureProvider_DEFINED
|
|
|
| #include "GrTexture.h"
|
| +#include "SkMipMapLevel.h"
|
| +#include "SkTArray.h"
|
|
|
| class SK_API GrTextureProvider {
|
| public:
|
| @@ -34,6 +36,17 @@ public:
|
| return this->createTexture(desc, budgeted, NULL, 0);
|
| }
|
|
|
| + /**
|
| + * Creates a new texture in the resource cache and returns it. The caller owns a
|
| + * ref on the returned texture which must be balanced by a call to unref.
|
| + *
|
| + * @param desc Description of the texture properties.
|
| + * @param budgeted Does the texture count against the resource cache budget?
|
| + * @param texels An array of mipmap levels
|
| + */
|
| + GrTexture* createTexture(const GrSurfaceDesc& desc, bool budgeted,
|
| + SkTArray<SkMipMapLevel>& texels);
|
| +
|
| /** Assigns a unique key to the texture. The texture will be findable via this key using
|
| findTextureByUniqueKey(). If an existing texture has this key, it's key will be removed. */
|
| void assignUniqueKeyToTexture(const GrUniqueKey& key, GrTexture* texture) {
|
|
|