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

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

Issue 2125853002: Replace RefPtrs with raw pointers (imageFromNode in Editor.cpp) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebase) Created 4 years, 5 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/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
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.cpp ('k') | third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698