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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h

Issue 2807073002: Removed local RefPtr objects created from PassRefPtr arguments. (Closed)
Patch Set: addressed review Created 3 years, 8 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/DeferredImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
index f339d164ddedc44ee82d398388951a79dc2844a4..05eca6cca110a3dad7732d1aab1fe3ac214d2b55 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
@@ -49,11 +49,10 @@ class PLATFORM_EXPORT DeferredImageDecoder final {
USING_FAST_MALLOC(DeferredImageDecoder);
public:
- static std::unique_ptr<DeferredImageDecoder> Create(
- PassRefPtr<SharedBuffer> data,
- bool data_complete,
- ImageDecoder::AlphaOption,
- const ColorBehavior&);
+ static std::unique_ptr<DeferredImageDecoder> Create(RefPtr<SharedBuffer> data,
+ bool data_complete,
+ ImageDecoder::AlphaOption,
+ const ColorBehavior&);
static std::unique_ptr<DeferredImageDecoder> CreateForTesting(
std::unique_ptr<ImageDecoder>);
@@ -92,7 +91,7 @@ class PLATFORM_EXPORT DeferredImageDecoder final {
sk_sp<SkImage> CreateFrameImageAtIndex(size_t index, bool known_to_be_opaque);
- void SetDataInternal(PassRefPtr<SharedBuffer> data,
+ void SetDataInternal(RefPtr<SharedBuffer> data,
bool all_data_received,
bool push_data_to_decoder);

Powered by Google App Engine
This is Rietveld 408576698