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

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

Issue 1812273003: Eliminate copies of encoded image data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/ImageDecodingStoreTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp b/third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp
index bfea0dad1bab55ee5104afa06d92d4e4a4768267..1fa2ccef3d1251da700d72b5e5a8029765a3d6ed 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp
@@ -25,7 +25,6 @@
#include "platform/graphics/ImageDecodingStore.h"
-#include "platform/SharedBuffer.h"
#include "platform/graphics/ImageFrameGenerator.h"
#include "platform/graphics/test/MockImageDecoder.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -37,8 +36,7 @@ public:
void SetUp() override
{
ImageDecodingStore::instance().setCacheLimitInBytes(1024 * 1024);
- m_data = SharedBuffer::create();
- m_generator = ImageFrameGenerator::create(SkISize::Make(100, 100), m_data, true);
+ m_generator = ImageFrameGenerator::create(SkISize::Make(100, 100), true);
m_decodersDestroyed = 0;
}
@@ -77,7 +75,6 @@ protected:
ImageDecodingStore::instance().setCacheLimitInBytes(0);
}
- RefPtr<SharedBuffer> m_data;
RefPtr<ImageFrameGenerator> m_generator;
int m_decodersDestroyed;
};

Powered by Google App Engine
This is Rietveld 408576698