Index: ui/gfx/blit_unittest.cc |
diff --git a/ui/gfx/blit_unittest.cc b/ui/gfx/blit_unittest.cc |
index 4dc814806b66776ae01c17a1b9fe0517981a026f..4f154f965ea857ea928c65c71e65057f0a5a3cc4 100644 |
--- a/ui/gfx/blit_unittest.cc |
+++ b/ui/gfx/blit_unittest.cc |
@@ -149,9 +149,9 @@ TEST(Blit, WithSharedMemory) { |
base::SharedMemory shared_mem; |
ASSERT_TRUE(shared_mem.CreateAnonymous(kCanvasWidth * kCanvasHeight)); |
base::SharedMemoryHandle section = shared_mem.handle(); |
- skia::RefPtr<SkCanvas> canvas = skia::AdoptRef( |
- skia::CreatePlatformCanvas(kCanvasWidth, kCanvasHeight, true, section, |
- skia::RETURN_NULL_ON_FAILURE)); |
+ skia::RefPtr<SkCanvas> canvas = skia::AdoptRef(skia::CreatePlatformCanvas( |
+ kCanvasWidth, kCanvasHeight, true, section.GetHandle(), |
+ skia::RETURN_NULL_ON_FAILURE)); |
ASSERT_TRUE(canvas); |
shared_mem.Close(); |