Chromium Code Reviews| Index: services/ui/surfaces/direct_output_surface_ozone.cc |
| diff --git a/services/ui/surfaces/direct_output_surface_ozone.cc b/services/ui/surfaces/direct_output_surface_ozone.cc |
| index 57e1c860753aeb2475dea3d5b9acdb90e35acd5d..a4020accfe04118dc881bf98014cf37f2e73b2b6 100644 |
| --- a/services/ui/surfaces/direct_output_surface_ozone.cc |
| +++ b/services/ui/surfaces/direct_output_surface_ozone.cc |
| @@ -35,16 +35,10 @@ DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( |
| context_provider->ContextSupport()), |
| synthetic_begin_frame_source_(synthetic_begin_frame_source), |
| weak_ptr_factory_(this) { |
| - if (!GpuService::UseChromeGpuCommandBuffer()) { |
| - ozone_gpu_memory_buffer_manager_.reset(new OzoneGpuMemoryBufferManager()); |
| - buffer_queue_.reset(new BufferQueue( |
| - context_provider->ContextGL(), target, internalformat, &gl_helper_, |
| - ozone_gpu_memory_buffer_manager_.get(), widget)); |
| - } else { |
| - buffer_queue_.reset(new BufferQueue( |
| - context_provider->ContextGL(), target, internalformat, &gl_helper_, |
| - MusGpuMemoryBufferManager::current(), widget)); |
| - } |
| + ozone_gpu_memory_buffer_manager_.reset(new OzoneGpuMemoryBufferManager()); |
|
Peng
2016/07/26 15:47:03
Seems this is necessary with the mojo command buff
sadrul
2016/07/26 16:13:04
Oh whoops. You are right. I removed the wrong bloc
|
| + buffer_queue_.reset(new BufferQueue( |
| + context_provider->ContextGL(), target, internalformat, &gl_helper_, |
| + ozone_gpu_memory_buffer_manager_.get(), widget)); |
| capabilities_.uses_default_gl_framebuffer = false; |
| capabilities_.flipped_output_surface = true; |