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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.cpp

Issue 2918443003: Remove redundant reading and writing of data about SharedBuffer.
Patch Set: benchmark Created 3 years, 6 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/graphics/ImageSource.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
index 38c5eff0816b7dabd56e790555aa360712dc73d5..afd66ad59a8d611a5eb84821dc4c189411e4fcd6 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
@@ -42,10 +42,6 @@ size_t ImageSource::ClearCacheExceptFrame(size_t clear_except_frame) {
return decoder_ ? decoder_->ClearCacheExceptFrame(clear_except_frame) : 0;
}
-PassRefPtr<SharedBuffer> ImageSource::Data() {
- return decoder_ ? decoder_->Data() : nullptr;
-}
-
bool ImageSource::SetData(RefPtr<SharedBuffer> data, bool all_data_received) {
all_data_received_ = all_data_received;

Powered by Google App Engine
This is Rietveld 408576698