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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-ImageBitmap-transferable.js

Issue 2522693002: Color correct ImageBitmap(HTMLImageElement*) constructor (Closed)
Patch Set: Removing ImageDecoder::globalTargetColorSpace() calls for now Created 4 years, 1 month 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/LayoutTests/fast/canvas/resources/canvas-ImageBitmap-transferable.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-ImageBitmap-transferable.js b/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-ImageBitmap-transferable.js
index 6364ee22dbcccaed5cf6052b0f3ba8e6dad3ceaa..34040aff9128ec3dd2357dddc803968724eed964 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-ImageBitmap-transferable.js
+++ b/third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-ImageBitmap-transferable.js
@@ -6,7 +6,7 @@ self.onmessage = function(e) {
// 2. send the created ImageBitmap back to the main thread, the
// main thread exam the property of this ImageBitmap to make sure
// the transfer between main and worker thread didn't lose data
- createImageBitmap(e.data.data).then(imageBitmap => {
+ createImageBitmap(e.data.data, {colorSpaceConversion: "none"}).then(imageBitmap => {
postMessage({data: imageBitmap}, [imageBitmap]);
});
};

Powered by Google App Engine
This is Rietveld 408576698