Index: webkit/glue/image_decoder.h |
diff --git a/webkit/glue/image_decoder.h b/webkit/glue/image_decoder.h |
index 1f7f266f9ab4a59c11ca479c9d8614989f7fb516..427948518357fcf4f4b0a34672d6e373350315c5 100644 |
--- a/webkit/glue/image_decoder.h |
+++ b/webkit/glue/image_decoder.h |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <vector> |
+ |
#include "base/basictypes.h" |
#include "ui/gfx/size.h" |
#include "webkit/glue/webkit_glue_export.h" |
@@ -28,6 +30,13 @@ class WEBKIT_GLUE_EXPORT ImageDecoder { |
// will be returned. Otherwise, an empty bitmap will be returned. |
SkBitmap Decode(const unsigned char* data, size_t size) const; |
+ // Returns all frames found in the image represented by data. All frames |
+ // will only have valid sizes and won't contain pixels, except for the |
+ // frames that have a size that's in |desired_sizes|. |
+ static std::vector<SkBitmap> DecodeAll( |
+ const unsigned char* data, size_t size, |
+ const std::vector<gfx::Size>& desired_sizes); |
+ |
private: |
// Size will be empty to get the largest possible size. |
gfx::Size desired_icon_size_; |