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

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

Issue 1413723004: Revert of Make ImageBitmap Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 393eabe78cdaf856ded22d97234cae7a78b389d7..bb45b3f009b97649d272ffb1158c13e864aee62a 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -181,21 +181,6 @@
return adoptRefWillBeNoop(new ImageBitmap(image, normalizedCropRect));
}
-PassRefPtrWillBeRawPtr<ImageBitmap> ImageBitmap::transfer()
-{
- RefPtrWillBeRawPtr<ImageBitmap> bitmap = adoptRefWillBeNoop(new ImageBitmap(this, m_cropRect));
- if (m_imageElement)
- m_imageElement.clear();
- if (m_bitmap)
- m_bitmap.clear();
- m_bitmapRect.setLocation(IntPoint(0, 0));
- m_bitmapRect.setSize(IntSize(0, 0));
- m_cropRect = m_bitmapRect;
- m_bitmapOffset.setX(0);
- m_bitmapOffset.setY(0);
- return bitmap.release();
-}
-
void ImageBitmap::notifyImageSourceChanged()
{
m_bitmap = cropImage(m_imageElement->cachedImage()->image(), m_cropRect);
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.h ('k') | third_party/WebKit/Source/web/WebSerializedScriptValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698