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

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

Issue 196343032: Implement ImageData constructors. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 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: Source/core/html/ImageData.h
diff --git a/Source/core/html/ImageData.h b/Source/core/html/ImageData.h
index 5015885998b8a46a50aaea1c52d18ecff2c090be..1630fb9d09faf8e998feca69679d35f418245deb 100644
--- a/Source/core/html/ImageData.h
+++ b/Source/core/html/ImageData.h
@@ -37,10 +37,14 @@
namespace WebCore {
+class ExceptionState;
+
class ImageData : public RefCounted<ImageData>, public ScriptWrappable {
public:
static PassRefPtr<ImageData> create(const IntSize&);
static PassRefPtr<ImageData> create(const IntSize&, PassRefPtr<Uint8ClampedArray>);
+ static PassRefPtr<ImageData> create(unsigned width, unsigned height, ExceptionState&);
+ static PassRefPtr<ImageData> create(Uint8ClampedArray*, unsigned width, unsigned height, ExceptionState&);
IntSize size() const { return m_size; }
int width() const { return m_size.width(); }

Powered by Google App Engine
This is Rietveld 408576698