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

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

Issue 244243002: Pass SharedBuffer by reference to DeferredImageDecoder::setData() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/platform/graphics/DeferredImageDecoder.h
diff --git a/Source/platform/graphics/DeferredImageDecoder.h b/Source/platform/graphics/DeferredImageDecoder.h
index 8787de611ddfa36b87476ac8f62be475ab8c3381..e161bf325322f1ef6db9be70e73de06ee3e9fbb3 100644
--- a/Source/platform/graphics/DeferredImageDecoder.h
+++ b/Source/platform/graphics/DeferredImageDecoder.h
@@ -58,7 +58,7 @@ public:
ImageFrame* frameBufferAtIndex(size_t index);
- void setData(SharedBuffer* data, bool allDataReceived);
+ void setData(SharedBuffer& data, bool allDataReceived);
bool isSizeAvailable();
IntSize size() const;
@@ -83,7 +83,6 @@ private:
SkBitmap createSkiaDiscardableBitmap(size_t index);
SkBitmap createLazyDecodingBitmap(size_t index);
void activateLazyDecoding();
- void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
RefPtr<SharedBuffer> m_data;
bool m_allDataReceived;

Powered by Google App Engine
This is Rietveld 408576698