Index: cc/layers/nine_patch_layer_impl_unittest.cc |
diff --git a/cc/layers/nine_patch_layer_impl_unittest.cc b/cc/layers/nine_patch_layer_impl_unittest.cc |
index beee519197a93d342680079f27d372768e911c22..a71f92ef0dd3cb8c17407b761cb083c9a6be6706 100644 |
--- a/cc/layers/nine_patch_layer_impl_unittest.cc |
+++ b/cc/layers/nine_patch_layer_impl_unittest.cc |
@@ -9,6 +9,7 @@ |
#include "cc/resources/ui_resource_bitmap.h" |
#include "cc/resources/ui_resource_client.h" |
#include "cc/test/fake_impl_proxy.h" |
+#include "cc/test/fake_output_surface.h" |
#include "cc/test/fake_ui_resource_layer_tree_host_impl.h" |
#include "cc/test/geometry_test_utils.h" |
#include "cc/test/layer_test_common.h" |
@@ -45,6 +46,8 @@ void NinePatchLayerLayoutTest(const gfx::Size& bitmap_size, |
FakeImplProxy proxy; |
TestSharedBitmapManager shared_bitmap_manager; |
FakeUIResourceLayerTreeHostImpl host_impl(&proxy, &shared_bitmap_manager); |
+ host_impl.InitializeRenderer(FakeOutputSurface::Create3d()); |
+ |
scoped_ptr<NinePatchLayerImpl> layer = |
NinePatchLayerImpl::Create(host_impl.active_tree(), 1); |
layer->draw_properties().visible_content_rect = visible_content_rect; |