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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add missing tests Created 3 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/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 a59e6a6e284dee95fb2a30daad5c635dc3b0e28b..96ebafa3abd84b0091f5a8ef94912ff8c8e8abca 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
@@ -498,7 +498,8 @@ TEST_F(ImageBitmapTest, ImageBitmapColorSpaceConversionStaticBitmapImage) {
TEST_F(ImageBitmapTest, ImageBitmapColorSpaceConversionImageData) {
unsigned char data_buffer[4] = {255, 0, 0, 255};
DOMUint8ClampedArray* data = DOMUint8ClampedArray::Create(data_buffer, 4);
- ImageData* image_data = ImageData::Create(IntSize(1, 1), data);
+ ImageData* image_data =
+ ImageData::Create(IntSize(1, 1), NotShared<DOMUint8ClampedArray>(data));
std::unique_ptr<uint8_t[]> src_pixel(new uint8_t[4]());
memcpy(src_pixel.get(), image_data->data()->Data(), 4);

Powered by Google App Engine
This is Rietveld 408576698