Index: ui/compositor/test/in_process_context_factory.cc |
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc |
index fa2380fc242a7f9c2e188ecc5a4e0137358c9f70..2858535e47b15694d558d2fecd140a8fe6a877a0 100644 |
--- a/ui/compositor/test/in_process_context_factory.cc |
+++ b/ui/compositor/test/in_process_context_factory.cc |
@@ -18,8 +18,7 @@ |
namespace ui { |
-InProcessContextFactory::InProcessContextFactory() |
- : shared_bitmap_manager_(new cc::TestSharedBitmapManager()) { |
+InProcessContextFactory::InProcessContextFactory() { |
DCHECK_NE(gfx::GetGLImplementation(), gfx::kGLImplementationNone) |
<< "If running tests, ensure that main() is calling " |
<< "gfx::GLSurface::InitializeOneOffForTests()"; |
@@ -93,7 +92,12 @@ void InProcessContextFactory::RemoveCompositor(Compositor* compositor) {} |
bool InProcessContextFactory::DoesCreateTestContexts() { return false; } |
cc::SharedBitmapManager* InProcessContextFactory::GetSharedBitmapManager() { |
- return shared_bitmap_manager_.get(); |
+ return &shared_bitmap_manager_; |
+} |
+ |
+cc::GpuMemoryBufferManager* |
+InProcessContextFactory::GetGpuMemoryBufferManager() { |
+ return &gpu_memory_buffer_manager_; |
} |
base::MessageLoopProxy* InProcessContextFactory::GetCompositorMessageLoop() { |