Chromium Code Reviews| Index: cc/trees/layer_tree_host_impl_unittest.cc |
| diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc |
| index 3c2bb86d4eafac31e5f28699acbe40dca7dd15c8..70224489699272f22ea175b3322ccfb86c55aac2 100644 |
| --- a/cc/trees/layer_tree_host_impl_unittest.cc |
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc |
| @@ -7754,8 +7754,7 @@ TEST_F(LayerTreeHostImplTest, CreateETC1UIResource) { |
| // correct width/height are passed directly to UIResourceBitmap. |
| SkImageInfo info = |
| SkImageInfo::Make(4, 2, kAlpha_8_SkColorType, kPremul_SkAlphaType); |
| - skia::RefPtr<SkPixelRef> pixel_ref = |
| - skia::AdoptRef(SkMallocPixelRef::NewAllocate(info, 0, 0)); |
| + sk_sp<SkPixelRef> pixel_ref(SkMallocPixelRef::NewAllocate(info, 0, 0)); |
| pixel_ref->setImmutable(); |
| UIResourceBitmap bitmap(pixel_ref, size); |
|
f(malita)
2016/04/21 15:45:47
move(pixel_ref)
tomhudson
2016/04/25 20:20:51
Done.
|
| UIResourceId ui_resource_id = 1; |