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

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

Issue 1855273002: Update new Surface callsites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: software_output_device was indirectly including skia::refptr, switch to sk_sp<> 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/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;

Powered by Google App Engine
This is Rietveld 408576698