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

Unified Diff: third_party/WebKit/Source/core/html/ImageData.h

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/html/ImageData.h
diff --git a/third_party/WebKit/Source/core/html/ImageData.h b/third_party/WebKit/Source/core/html/ImageData.h
index 87eab79a0285a1a54c36f1fc373159ed246e1b47..05219d7eb00607fe45237a9a9eb9f1a564b1286b 100644
--- a/third_party/WebKit/Source/core/html/ImageData.h
+++ b/third_party/WebKit/Source/core/html/ImageData.h
@@ -33,6 +33,7 @@
#include "bindings/core/v8/Uint8ClampedArrayOrUint16ArrayOrFloat32Array.h"
#include "core/CoreExport.h"
#include "core/dom/DOMTypedArray.h"
+#include "core/dom/NotShared.h"
#include "core/html/ImageDataColorSettings.h"
#include "core/html/canvas/CanvasRenderingContext.h"
#include "core/imagebitmap/ImageBitmapSource.h"
@@ -77,14 +78,14 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
static ImageData* create(const IntSize&,
const ImageDataColorSettings* = nullptr);
static ImageData* create(const IntSize&,
- DOMArrayBufferView*,
+ NotShared<DOMArrayBufferView>,
const ImageDataColorSettings* = nullptr);
static ImageData* create(unsigned width, unsigned height, ExceptionState&);
- static ImageData* create(DOMUint8ClampedArray*,
+ static ImageData* create(NotShared<DOMUint8ClampedArray>,
unsigned width,
ExceptionState&);
- static ImageData* create(DOMUint8ClampedArray*,
+ static ImageData* create(NotShared<DOMUint8ClampedArray>,
unsigned width,
unsigned height,
ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698