| 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 c337a6ea877a3593409654ef8ac69b0d8f5ee734..bbe3335ada4e959ba2e977af742cd7de3bf7d9a7 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
|
| +++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.h
|
| @@ -132,7 +132,7 @@ public:
|
|
|
| void ensureUnacceleratedImageBuffer();
|
| ImageBuffer* buffer() const;
|
| - PassRefPtr<Image> copiedImage(SourceDrawingBuffer, AccelerationHint) const;
|
| + Image* copiedImage(SourceDrawingBuffer, AccelerationHint) const;
|
| void clearCopiedImage();
|
|
|
| SecurityOrigin* getSecurityOrigin() const;
|
| @@ -239,6 +239,8 @@ private:
|
|
|
| String toDataURLInternal(const String& mimeType, const double& quality, SourceDrawingBuffer) const;
|
|
|
| + Image* ensureTransparentImage() const;
|
| +
|
| HeapHashSet<WeakMember<CanvasDrawListener>> m_listeners;
|
|
|
| IntSize m_size;
|
| @@ -262,6 +264,8 @@ private:
|
|
|
| // Used for OffscreenCanvas that controls this HTML canvas element
|
| std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge;
|
| +
|
| + mutable RefPtr<Image> m_transparentImage;
|
| };
|
|
|
| } // namespace blink
|
|
|