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

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

Issue 1866243003: Revert of Eliminate copies of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/DecodingImageGenerator.h
diff --git a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h
index bc338d077f20f29ffcde8eef5b1588aac0653c2e..65407af3f2df522a3cb48ebc9eaf8e9ca5deb56e 100644
--- a/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h
+++ b/third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.h
@@ -27,12 +27,10 @@
#define DecodingImageGenerator_h
#include "platform/PlatformExport.h"
-#include "platform/image-decoders/SegmentReader.h"
#include "third_party/skia/include/core/SkImageGenerator.h"
#include "third_party/skia/include/core/SkImageInfo.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
class SkData;
@@ -50,7 +48,7 @@
public:
static SkImageGenerator* create(SkData*);
- DecodingImageGenerator(PassRefPtr<ImageFrameGenerator>, const SkImageInfo&, PassRefPtr<SegmentReader>, bool allDataReceived, size_t index);
+ DecodingImageGenerator(PassRefPtr<ImageFrameGenerator>, const SkImageInfo&, size_t index);
~DecodingImageGenerator() override;
void setGenerationId(size_t id) { m_generationId = id; }
@@ -67,9 +65,7 @@
private:
RefPtr<ImageFrameGenerator> m_frameGenerator;
- const RefPtr<SegmentReader> m_data; // Data source.
- const bool m_allDataReceived;
- const size_t m_frameIndex;
+ size_t m_frameIndex;
size_t m_generationId;
bool m_canYUVDecode;
};

Powered by Google App Engine
This is Rietveld 408576698