Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Unified Diff: third_party/WebKit/Source/web/ImageDecodeBench.cpp

Issue 1879133002: Make ImageDecodeBench build once again (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698