Index: include/core/SkImageDecoder.h |
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h |
index a7e36465539d7708c0eb8a411fba7ebb9980fd29..72bca7cf452ccc9d3d77ad3597040c7f6955ed2e 100644 |
--- a/include/core/SkImageDecoder.h |
+++ b/include/core/SkImageDecoder.h |
@@ -11,7 +11,6 @@ |
#define SkImageDecoder_DEFINED |
#include "SkBitmap.h" |
-#include "SkBitmapFactory.h" |
#include "SkImage.h" |
#include "SkRect.h" |
#include "SkRefCnt.h" |
@@ -366,6 +365,21 @@ public: |
} |
/** |
+ * Struct containing information about a pixel destination. |
+ */ |
+ struct Target { |
+ /** |
+ * Pre-allocated memory. |
+ */ |
+ void* fAddr; |
+ |
+ /** |
+ * Rowbytes of the allocated memory. |
+ */ |
+ size_t fRowBytes; |
+ }; |
+ |
+ /** |
* Decode memory. |
* @param info Output parameter. Returns info about the encoded image. |
* @param target Contains the address of pixel memory to decode into |
@@ -390,7 +404,7 @@ public: |
* </code> |
*/ |
static bool DecodeMemoryToTarget(const void* buffer, size_t size, SkImageInfo* info, |
- const SkBitmapFactory::Target* target); |
+ const Target* target); |
/** Decode the image stored in the specified SkStreamRewindable, and store the result |
in bitmap. Return true for success or false on failure. |