Chromium Code Reviews| Index: third_party/WebKit/Source/web/ImageDecodeBench.cpp |
| diff --git a/third_party/WebKit/Source/web/ImageDecodeBench.cpp b/third_party/WebKit/Source/web/ImageDecodeBench.cpp |
| index b0738bb999a298d8e4892256a5ae295eed61b5be..51487e2db0240631d16f67ac5f4f8f112114a5f6 100644 |
| --- a/third_party/WebKit/Source/web/ImageDecodeBench.cpp |
| +++ b/third_party/WebKit/Source/web/ImageDecodeBench.cpp |
| @@ -280,10 +280,10 @@ bool decodeImageData(SharedBuffer* data, bool colorCorrection, size_t packetSize |
| } |
| RefPtr<SharedBuffer> packetData = SharedBuffer::create(); |
| - unsigned position = 0; |
| + size_t position = 0; |
| while (true) { |
| const char* packet; |
| - unsigned length = data->getSomeData(packet, position); |
| + size_t length = data->getSomeData(packet, position); |
| length = std::min(static_cast<size_t>(length), packetSize); |
| packetData->append(packet, length); |
| @@ -368,7 +368,8 @@ int main(int argc, char* argv[]) |
| // Set image decoding Platform options. |
|
Noel Gordon
2016/04/26 14:09:59
Maybe a DeferredImageDecoder::setEnabled(false); i
scroggo_chromium
2016/04/29 13:44:30
I don't see how this is necessary. That only affec
Noel Gordon
2016/05/02 12:31:09
I recall in testing the older code last week, that
|
| #if USE(QCMSLIB) |
| - ImageDecoder::qcmsOutputDeviceProfile(); // Initialize screen colorProfile. |
| + // FIXME: This method has been removed, but it is important. |
|
ccameron
2016/04/21 07:30:42
Could you give a bit more detail about what is "im
scroggo_chromium
2016/04/29 13:44:30
As I understand it, the question is not whether th
Noel Gordon
2016/05/02 12:31:09
Yeap, that's right, to remove profile initializati
|
| + // ImageDecoder::qcmsOutputDeviceProfile(); // Initialize screen colorProfile. |
| #endif |
| // Read entire file content to data. |