Index: Source/platform/graphics/ImageFrameGenerator.cpp |
diff --git a/Source/platform/graphics/ImageFrameGenerator.cpp b/Source/platform/graphics/ImageFrameGenerator.cpp |
index 228d21863ee9313eb80bd978f9b799174a642cd4..a51db79f686bba988dadc80ef9dfc10e3900446d 100644 |
--- a/Source/platform/graphics/ImageFrameGenerator.cpp |
+++ b/Source/platform/graphics/ImageFrameGenerator.cpp |
@@ -52,14 +52,14 @@ public: |
virtual bool allocPixelRef(SkBitmap* dst, SkColorTable* ctable) OVERRIDE |
{ |
- SkImageInfo info; |
- if (!dst->asImageInfo(&info)) |
+ const SkImageInfo& info = dst->info(); |
+ if (kUnknown_SkColorType == info.colorType()) |
return false; |
if (info != m_info || m_rowBytes != dst->rowBytes()) |
return false; |
- if (!dst->installPixels(m_info, m_pixels, m_rowBytes, 0, 0)) |
+ if (!dst->installPixels(m_info, m_pixels, m_rowBytes)) |
return false; |
dst->lockPixels(); |
return true; |