Index: cc/resources/resource_update_controller_unittest.cc |
diff --git a/cc/resources/resource_update_controller_unittest.cc b/cc/resources/resource_update_controller_unittest.cc |
index 69e4b8bd6ac96e05d8f027e9dfc60c5abc844995..80e8a76f8f3c08c537522cefc47dae3670ae653e 100644 |
--- a/cc/resources/resource_update_controller_unittest.cc |
+++ b/cc/resources/resource_update_controller_unittest.cc |
@@ -10,6 +10,7 @@ |
#include "cc/test/fake_output_surface_client.h" |
#include "cc/test/fake_proxy.h" |
#include "cc/test/scheduler_test_common.h" |
+#include "cc/test/test_shared_bitmap_manager.h" |
#include "cc/test/test_web_graphics_context_3d.h" |
#include "cc/test/tiled_layer_test_common.h" |
#include "cc/trees/single_thread_proxy.h" // For DebugScopedSetImplThread |
@@ -124,8 +125,9 @@ class ResourceUpdateControllerTest : public Test { |
new WebGraphicsContext3DForUploadTest(this))); |
CHECK(output_surface_->BindToClient(&output_surface_client_)); |
- resource_provider_ = |
- ResourceProvider::Create(output_surface_.get(), NULL, 0, false, 1); |
+ shared_bitmap_manager_.reset(new TestSharedBitmapManager()); |
+ resource_provider_ = ResourceProvider::Create( |
+ output_surface_.get(), shared_bitmap_manager_.get(), 0, false, 1); |
} |
void AppendFullUploadsOfIndexedTextureToUpdateQueue(int count, |
@@ -182,6 +184,7 @@ class ResourceUpdateControllerTest : public Test { |
FakeProxy proxy_; |
FakeOutputSurfaceClient output_surface_client_; |
scoped_ptr<OutputSurface> output_surface_; |
+ scoped_ptr<SharedBitmapManager> shared_bitmap_manager_; |
scoped_ptr<ResourceProvider> resource_provider_; |
scoped_ptr<ResourceUpdateQueue> queue_; |
scoped_ptr<PrioritizedResource> textures_[4]; |