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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 1409243005: Make ImageBitmap Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix blank line Created 5 years, 2 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/frame/ImageBitmap.h
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
index 8dc3a51e7070dd73fd00cf08973306fd253b6a49..37d29b51ebb00c00da0d9e9becc88e9c7df886e7 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -41,6 +41,10 @@ public:
int height() const { return m_cropRect.height(); }
IntSize size() const { return m_cropRect.size(); }
+ bool isNeutered() const { return m_isNeutered; }
+ void neuter();
+ PassRefPtr<ImageBitmap> transfer();
Justin Novosad 2015/10/23 13:30:04 PassRefPtrWillBeRawPtr
+
~ImageBitmap() override;
// CanvasImageSource implementation
@@ -76,6 +80,7 @@ private:
// ImageBitmaps not constructed from HTMLImageElements always pre-crop and store the image at (0, 0).
IntPoint m_bitmapOffset;
+ bool m_isNeutered;
Justin Novosad 2015/10/23 13:30:04 Is this field necessary? I think isNeuteres can be
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698