Index: include/gpu/GrTextureProvider.h |
diff --git a/include/gpu/GrTextureProvider.h b/include/gpu/GrTextureProvider.h |
index 44c8cbc6578424aaed6a0e3422d9e4915597ee6e..0ac21bd02950aaa80b423d7f79372077751215cf 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: |
@@ -19,8 +21,17 @@ public: |
* 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 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, |
+ const SkTArray<SkMipMapLevel>& texels); |
+ |
+ /** |
+ * This function is a shim which creates a SkTArray<SkMipMapLevel> of size 1. |
+ * It then calls createTexture with that SkTArray. |
+ * |
* @param srcData Pointer to the pixel values (optional). |
* @param rowBytes The number of bytes between rows of the texture. Zero |
* implies tightly packed rows. For compressed pixel configs, this |