| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/compositor/gpu_process_transport_factory.h" | 5 #include "content/browser/compositor/gpu_process_transport_factory.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 data->begin_frame_source = begin_frame_source.get(); | 540 data->begin_frame_source = begin_frame_source.get(); |
| 541 if (data->reflector) | 541 if (data->reflector) |
| 542 data->reflector->OnSourceSurfaceReady(data->display_output_surface); | 542 data->reflector->OnSourceSurfaceReady(data->display_output_surface); |
| 543 | 543 |
| 544 #if defined(OS_WIN) | 544 #if defined(OS_WIN) |
| 545 gfx::RenderingWindowManager::GetInstance()->DoSetParentOnChild( | 545 gfx::RenderingWindowManager::GetInstance()->DoSetParentOnChild( |
| 546 compositor->widget()); | 546 compositor->widget()); |
| 547 #endif | 547 #endif |
| 548 | 548 |
| 549 std::unique_ptr<cc::DisplayScheduler> scheduler(new cc::DisplayScheduler( | 549 std::unique_ptr<cc::DisplayScheduler> scheduler(new cc::DisplayScheduler( |
| 550 begin_frame_source.get(), compositor->task_runner().get(), | 550 compositor->task_runner().get(), |
| 551 display_output_surface->capabilities().max_frames_pending)); | 551 display_output_surface->capabilities().max_frames_pending)); |
| 552 | 552 |
| 553 // The Display owns and uses the |display_output_surface| created above. | 553 // The Display owns and uses the |display_output_surface| created above. |
| 554 data->display = base::MakeUnique<cc::Display>( | 554 data->display = base::MakeUnique<cc::Display>( |
| 555 HostSharedBitmapManager::current(), GetGpuMemoryBufferManager(), | 555 HostSharedBitmapManager::current(), GetGpuMemoryBufferManager(), |
| 556 compositor->GetRendererSettings(), compositor->frame_sink_id(), | 556 compositor->GetRendererSettings(), compositor->frame_sink_id(), |
| 557 std::move(begin_frame_source), std::move(display_output_surface), | 557 std::move(begin_frame_source), std::move(display_output_surface), |
| 558 std::move(scheduler), base::MakeUnique<cc::TextureMailboxDeleter>( | 558 std::move(scheduler), base::MakeUnique<cc::TextureMailboxDeleter>( |
| 559 compositor->task_runner().get())); | 559 compositor->task_runner().get())); |
| 560 | 560 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 shared_vulkan_context_provider_ = | 880 shared_vulkan_context_provider_ = |
| 881 cc::VulkanInProcessContextProvider::Create(); | 881 cc::VulkanInProcessContextProvider::Create(); |
| 882 } | 882 } |
| 883 | 883 |
| 884 shared_vulkan_context_provider_initialized_ = true; | 884 shared_vulkan_context_provider_initialized_ = true; |
| 885 } | 885 } |
| 886 return shared_vulkan_context_provider_; | 886 return shared_vulkan_context_provider_; |
| 887 } | 887 } |
| 888 | 888 |
| 889 } // namespace content | 889 } // namespace content |
| OLD | NEW |