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

Unified Diff: third_party/WebKit/Source/platform/exported/WebImage.cpp

Issue 1812273003: Eliminate copies of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small cleanups; remove unneeded changes Created 4 years, 9 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/platform/exported/WebImage.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebImage.cpp b/third_party/WebKit/Source/platform/exported/WebImage.cpp
index bb14044c2946d29e25d81ee60d1637f7cbbb4a79..c762efc0f9292d842436ec71063691963f5f1501 100644
--- a/third_party/WebKit/Source/platform/exported/WebImage.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebImage.cpp
@@ -51,7 +51,7 @@ WebImage WebImage::fromData(const WebData& data, const WebSize& desiredSize)
if (!decoder)
return WebImage();
- decoder->setData(buffer.get(), true);
+ decoder->setData(buffer.release(), true);
if (!decoder->isSizeAvailable())
return WebImage();
@@ -95,7 +95,7 @@ WebVector<WebImage> WebImage::framesFromData(const WebData& data)
if (!decoder)
return WebVector<WebImage>();
- decoder->setData(buffer.get(), true);
+ decoder->setData(buffer.release(), true);
if (!decoder->isSizeAvailable())
return WebVector<WebImage>();

Powered by Google App Engine
This is Rietveld 408576698