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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp

Issue 2728373004: Remove Float32ImageData and update ImageData for color management (Closed)
Patch Set: Addressing comments Created 3 years, 9 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/core/frame/ImageBitmapTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp b/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
index 10ba5636582d28d2b28117b5087fe87a6c031829..63db6b16dd6b52614460484ee3cbfb7791519464 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
@@ -490,8 +490,7 @@ TEST_F(ImageBitmapTest, ImageBitmapColorSpaceConversionStaticBitmapImage) {
TEST_F(ImageBitmapTest, ImageBitmapColorSpaceConversionImageData) {
unsigned char dataBuffer[4] = {255, 0, 0, 255};
DOMUint8ClampedArray* data = DOMUint8ClampedArray::create(dataBuffer, 4);
- ImageData* imageData =
- ImageData::create(IntSize(1, 1), data, kLegacyImageDataColorSpaceName);
+ ImageData* imageData = ImageData::create(IntSize(1, 1), data);
std::unique_ptr<uint8_t[]> srcPixel(new uint8_t[4]());
memcpy(srcPixel.get(), imageData->data()->data(), 4);

Powered by Google App Engine
This is Rietveld 408576698