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 e41726d5dad5c22dbe44980747b48acedc9b37cc..29a1afb320e8699de0c3c8519323b3deeee51a1b 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -5453,16 +5453,12 @@ |
EXPECT_EQ(0u, context3d->NumTextures()); |
- gfx::Size size(4, 4); |
- // SkImageInfo has no support for ETC1. The |info| below contains the right |
- // total pixel size for the bitmap but not the right height and width. The |
- // correct width/height are passed directly to UIResourceBitmap. |
SkImageInfo info = |
- SkImageInfo::Make(4, 2, kAlpha_8_SkColorType, kPremul_SkAlphaType); |
+ SkImageInfo::Make(4, 4, kPMColor_SkColorType, kPremul_SkAlphaType); |
skia::RefPtr<SkPixelRef> pixel_ref = |
skia::AdoptRef(SkMallocPixelRef::NewAllocate(info, 0, 0)); |
pixel_ref->setImmutable(); |
- UIResourceBitmap bitmap(pixel_ref, size); |
+ UIResourceBitmap bitmap(pixel_ref); |
UIResourceId ui_resource_id = 1; |
host_impl_->CreateUIResource(ui_resource_id, bitmap); |
EXPECT_EQ(1u, context3d->NumTextures()); |