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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src.html

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/canvas-drawImage-out-of-bounds-src.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src.html
index 851733635dd90bd483c8478e419e55d35963d1fb..d4bdb20b7e622c5fd529031c28f2397ec4ee34d1 100644
--- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src.html
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-out-of-bounds-src.html
@@ -69,7 +69,7 @@ function videoLoaded() {
ctx3.drawImage(video, 0, 0, 2*w, 2*h, 175, 175, 100, 100);
if (window.createImageBitmap) {
- window.createImageBitmap(img).then(imageReady, function() {
+ window.createImageBitmap(img, {colorSpaceConversion: "none"}).then(imageReady, function() {
testFailed("Promise was rejected.");
finishJSTest();
});
@@ -96,4 +96,4 @@ function imageReady(imageBitmap) {
}
</script>
-</body></html>
+</body></html>

Powered by Google App Engine
This is Rietveld 408576698