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

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

Issue 1812273003: Eliminate copies of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a leak; remove unnecessary comments 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/graphics/DeferredImageDecoderTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
index 417b2c83380b653c727818f3283cce6931b85ed0..b71ce6361fccaed59d0dd7cce641adbb7f1e8c5a 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp
@@ -31,6 +31,7 @@
#include "platform/graphics/ImageDecodingStore.h"
#include "platform/graphics/ImageFrameGenerator.h"
#include "platform/graphics/test/MockImageDecoder.h"
+#include "platform/image-decoders/SharedBufferSegmentReader.h"
#include "public/platform/Platform.h"
#include "public/platform/WebThread.h"
#include "public/platform/WebTraceLocation.h"
@@ -41,6 +42,7 @@
#include "third_party/skia/include/core/SkPictureRecorder.h"
#include "third_party/skia/include/core/SkPixmap.h"
#include "third_party/skia/include/core/SkSurface.h"
+#include "third_party/skia/src/core/SkRWBuffer.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -339,7 +341,7 @@ TEST_F(DeferredImageDecoderTest, smallerFrameCount)
TEST_F(DeferredImageDecoderTest, frameOpacity)
{
- OwnPtr<ImageDecoder> actualDecoder = ImageDecoder::create(*m_data,
+ OwnPtr<ImageDecoder> actualDecoder = ImageDecoder::create(*m_data.get(),
ImageDecoder::AlphaPremultiplied, ImageDecoder::GammaAndColorProfileApplied);
OwnPtr<DeferredImageDecoder> decoder = DeferredImageDecoder::createForTesting(actualDecoder.release());
decoder->setData(*m_data, true);

Powered by Google App Engine
This is Rietveld 408576698