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 bcbc6c38280551860dcb56604095d2da2cbd50db..37f2cd551c368aeed47343097219b9e62fc28553 100644 |
--- a/cc/trees/layer_tree_host_impl_unittest.cc |
+++ b/cc/trees/layer_tree_host_impl_unittest.cc |
@@ -3696,13 +3696,9 @@ TEST_F(LayerTreeHostImplViewportCoveredTest, ViewportCoveredOverhangBitmap) { |
host_impl_->SetViewportSize(DipSizeToPixelSize(viewport_size_)); |
SetupActiveTreeLayers(); |
- SkBitmap skbitmap; |
- skbitmap.setConfig(SkBitmap::kARGB_8888_Config, 2, 2); |
- skbitmap.allocPixels(); |
- skbitmap.setImmutable(); |
- |
// Specify an overhang bitmap to use. |
- UIResourceBitmap ui_resource_bitmap(skbitmap); |
+ bool is_opaque = false; |
+ UIResourceBitmap ui_resource_bitmap(gfx::Size(2, 2), is_opaque); |
ui_resource_bitmap.SetWrapMode(UIResourceBitmap::REPEAT); |
UIResourceId ui_resource_id = 12345; |
host_impl_->CreateUIResource(ui_resource_id, ui_resource_bitmap); |
@@ -5632,13 +5628,9 @@ TEST_F(LayerTreeHostImplTest, UIResourceManagement) { |
EXPECT_EQ(0u, context3d->NumTextures()); |
- SkBitmap skbitmap; |
- skbitmap.setConfig(SkBitmap::kARGB_8888_Config, 1, 1); |
- skbitmap.allocPixels(); |
- skbitmap.setImmutable(); |
- |
UIResourceId ui_resource_id = 1; |
- UIResourceBitmap bitmap(skbitmap); |
+ bool is_opaque = false; |
+ UIResourceBitmap bitmap(gfx::Size(1, 1), is_opaque); |
host_impl_->CreateUIResource(ui_resource_id, bitmap); |
EXPECT_EQ(1u, context3d->NumTextures()); |
ResourceProvider::ResourceId id1 = |