Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| index f8b1b19abcd8ac856b20ee4c9e9f5132794baa76..d776e99cbb778ec3f99001e5cadb7b01318eeecf 100644 |
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h |
| @@ -82,9 +82,6 @@ public: |
| static WebThread* getToBlobThreadInstance(); |
| - void addObserver(CanvasObserver*); |
| - void removeObserver(CanvasObserver*); |
| - |
| // Attributes and functions exposed to script |
| int width() const { return size().width(); } |
| int height() const { return size().height(); } |
| @@ -93,8 +90,6 @@ public: |
| void setWidth(int); |
| void setHeight(int); |
| - void setAccelerationDisabled(bool accelerationDisabled) { m_accelerationDisabled = accelerationDisabled; } |
| - bool accelerationDisabled() const { return m_accelerationDisabled; } |
| void setSize(const IntSize& newSize) |
| { |
| @@ -123,7 +118,6 @@ public: |
| // Used for rendering |
| void didDraw(const FloatRect&); |
| - void notifyObserversCanvasChanged(const FloatRect&); |
|
Justin Novosad
2015/10/23 18:21:12
This was so fragile. Glad to see it go!
chrishtr
2015/10/23 19:47:06
ACK!
|
| void paint(GraphicsContext*, const LayoutRect&); |
| @@ -220,14 +214,11 @@ private: |
| static void encodeImageAsync(DOMUint8ClampedArray* imagedata, IntSize imageSize, FileCallback*, const String& mimeType, double quality); |
| static void createBlobAndCall(PassOwnPtr<Vector<char>> encodedImage, const String& mimeType, FileCallback*); |
| - WillBeHeapHashSet<RawPtrWillBeWeakMember<CanvasObserver>> m_observers; |
| - |
| IntSize m_size; |
| OwnPtrWillBeMember<CanvasRenderingContext> m_context; |
| bool m_ignoreReset; |
| - bool m_accelerationDisabled; |
| FloatRect m_dirtyRect; |
| mutable intptr_t m_externallyAllocatedMemory; |