| Index: cc/test/test_in_process_context_provider.cc
|
| diff --git a/cc/test/test_in_process_context_provider.cc b/cc/test/test_in_process_context_provider.cc
|
| index b4d580f9e0c0ddd4943739636a66ffdb9888716c..34b0493d8120c032b08f5419450a9687fd148526 100644
|
| --- a/cc/test/test_in_process_context_provider.cc
|
| +++ b/cc/test/test_in_process_context_provider.cc
|
| @@ -20,7 +20,9 @@
|
| namespace cc {
|
|
|
| // static
|
| -scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext() {
|
| +scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext(
|
| + TestGpuMemoryBufferManager* gpu_memory_buffer_manager,
|
| + TestImageFactory* image_factory) {
|
| const bool is_offscreen = true;
|
| const bool share_resources = true;
|
| gpu::gles2::ContextCreationAttribHelper attribs;
|
| @@ -47,14 +49,22 @@ scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext() {
|
| share_resources,
|
| attribs,
|
| gpu_preference,
|
| - gpu::GLInProcessContextSharedMemoryLimits()));
|
| + gpu::GLInProcessContextSharedMemoryLimits(),
|
| + gpu_memory_buffer_manager,
|
| + image_factory));
|
|
|
| DCHECK(context);
|
| return context.Pass();
|
| }
|
|
|
| +scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext() {
|
| + return CreateTestInProcessContext(nullptr, nullptr);
|
| +}
|
| +
|
| TestInProcessContextProvider::TestInProcessContextProvider()
|
| - : context_(CreateTestInProcessContext()) {}
|
| + : context_(CreateTestInProcessContext(&gpu_memory_buffer_manager_,
|
| + &image_factory_)) {
|
| +}
|
|
|
| TestInProcessContextProvider::~TestInProcessContextProvider() {
|
| }
|
| @@ -116,7 +126,11 @@ class GrContext* TestInProcessContextProvider::GrContext() {
|
|
|
| ContextProvider::Capabilities
|
| TestInProcessContextProvider::ContextCapabilities() {
|
| - return ContextProvider::Capabilities();
|
| + ContextProvider::Capabilities capabilities;
|
| + capabilities.gpu.image = true;
|
| + capabilities.gpu.texture_rectangle = true;
|
| +
|
| + return capabilities;
|
| }
|
|
|
| bool TestInProcessContextProvider::IsContextLost() { return false; }
|
|
|