| 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 1fa2ccef3d1251da700d72b5e5a8029765a3d6ed..bfea0dad1bab55ee5104afa06d92d4e4a4768267 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/ImageDecodingStoreTest.cpp
|
| @@ -25,6 +25,7 @@
|
|
|
| #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"
|
| @@ -36,7 +37,8 @@
|
| void SetUp() override
|
| {
|
| ImageDecodingStore::instance().setCacheLimitInBytes(1024 * 1024);
|
| - m_generator = ImageFrameGenerator::create(SkISize::Make(100, 100), true);
|
| + m_data = SharedBuffer::create();
|
| + m_generator = ImageFrameGenerator::create(SkISize::Make(100, 100), m_data, true);
|
| m_decodersDestroyed = 0;
|
| }
|
|
|
| @@ -75,6 +77,7 @@
|
| ImageDecodingStore::instance().setCacheLimitInBytes(0);
|
| }
|
|
|
| + RefPtr<SharedBuffer> m_data;
|
| RefPtr<ImageFrameGenerator> m_generator;
|
| int m_decodersDestroyed;
|
| };
|
|
|