Index: Source/platform/image-decoders/ico/ICOImageDecoder.h |
diff --git a/Source/platform/image-decoders/ico/ICOImageDecoder.h b/Source/platform/image-decoders/ico/ICOImageDecoder.h |
index 93278863c3ad3c8e155070a1aeb4698a555d0a67..d2570c15ddbcbd95b7f4502366c29f7956b034e6 100644 |
--- a/Source/platform/image-decoders/ico/ICOImageDecoder.h |
+++ b/Source/platform/image-decoders/ico/ICOImageDecoder.h |
@@ -85,12 +85,14 @@ private: |
inline uint16_t readUint16(int offset) const |
{ |
- return BMPImageReader::readUint16(m_data.get(), m_decodedOffset + offset); |
+ // TODO (scroggo): This consolidates the data, meaning unnecessary copies. |
+ return BMPImageReader::readUint16(&m_data->data()[m_decodedOffset + offset]); |
} |
inline uint32_t readUint32(int offset) const |
{ |
- return BMPImageReader::readUint32(m_data.get(), m_decodedOffset + offset); |
+ // TODO (scroggo): This consolidates the data, meaning unnecessary copies. |
+ return BMPImageReader::readUint32(&m_data->data()[m_decodedOffset + offset]); |
} |
// If the desired PNGImageDecoder exists, gives it the appropriate data. |