| Index: trunk/src/cc/trees/layer_tree_host_impl_unittest.cc
|
| ===================================================================
|
| --- trunk/src/cc/trees/layer_tree_host_impl_unittest.cc (revision 223178)
|
| +++ trunk/src/cc/trees/layer_tree_host_impl_unittest.cc (working copy)
|
| @@ -3070,13 +3070,12 @@
|
| 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, UIResourceBitmap::REPEAT);
|
| + scoped_refptr<UIResourceBitmap> ui_resource_bitmap(UIResourceBitmap::Create(
|
| + new uint8_t[4],
|
| + UIResourceBitmap::RGBA8,
|
| + UIResourceBitmap::REPEAT,
|
| + gfx::Size(1, 1)));
|
| UIResourceId ui_resource_id = 12345;
|
| host_impl_->CreateUIResource(ui_resource_id, ui_resource_bitmap);
|
| host_impl_->SetOverhangUIResource(ui_resource_id, gfx::Size(32, 32));
|
| @@ -6542,13 +6541,12 @@
|
|
|
| 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);
|
| + scoped_refptr<UIResourceBitmap> bitmap = UIResourceBitmap::Create(
|
| + new uint8_t[1],
|
| + UIResourceBitmap::RGBA8,
|
| + UIResourceBitmap::CLAMP_TO_EDGE,
|
| + gfx::Size(1, 1));
|
| host_impl_->CreateUIResource(ui_resource_id, bitmap);
|
| EXPECT_EQ(1u, context3d->NumTextures());
|
| ResourceProvider::ResourceId id1 =
|
|
|