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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: remove unused checks 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 7b0005953bcb1e64c89d3d329babd472c2aa0955..d017dd9988ead6e75dbd572a003416812e502760 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"
@@ -80,13 +81,13 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
public:
static ImageData* create(const IntSize&);
- static ImageData* create(const IntSize&, DOMUint8ClampedArray*);
-
+ static ImageData* create(const IntSize&,
+ const NotShared<DOMUint8ClampedArray>&);
static ImageData* create(unsigned width, unsigned height, ExceptionState&);
- static ImageData* create(DOMUint8ClampedArray*,
+ static ImageData* create(const NotShared<DOMUint8ClampedArray>&,
unsigned width,
ExceptionState&);
- static ImageData* create(DOMUint8ClampedArray*,
+ static ImageData* create(const NotShared<DOMUint8ClampedArray>&,
unsigned width,
unsigned height,
ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698