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 9edd5595d9f94e40c8230542963259cc48625991..bf6e341d702d1bc5f8d8e782b31c19f96d077e87 100644 |
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp |
@@ -104,7 +104,7 @@ public: |
m_actualDecoder = decoder.get(); |
m_actualDecoder->setSize(1, 1); |
m_lazyDecoder = DeferredImageDecoder::createForTesting(decoder.release()); |
- m_surface.reset(SkSurface::NewRasterN32Premul(100, 100)); |
+ m_surface = SkSurface::MakeRasterN32Premul(100, 100); |
ASSERT_TRUE(m_surface.get()); |
m_decodeRequestCount = 0; |
m_repetitionCount = cAnimationNone; |
@@ -162,7 +162,7 @@ protected: |
// Don't own this but saves the pointer to query states. |
MockImageDecoder* m_actualDecoder; |
OwnPtr<DeferredImageDecoder> m_lazyDecoder; |
- SkAutoTUnref<SkSurface> m_surface; |
+ sk_sp<SkSurface> m_surface; |
int m_decodeRequestCount; |
RefPtr<SharedBuffer> m_data; |
size_t m_frameCount; |