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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: add some layout 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 10c101a586f27d9550657220c163d6e322179ea5..beebb0f974e5d496bae167ccad202b188f939464 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
@@ -490,7 +490,8 @@ 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);
+ ImageData* imageData =
+ ImageData::create(IntSize(1, 1), NotShared<DOMUint8ClampedArray>(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