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 29 matching lines...) Expand all Loading... |
40 #include "content/browser/gpu/gpu_data_manager_impl.h" | 40 #include "content/browser/gpu/gpu_data_manager_impl.h" |
41 #include "content/browser/renderer_host/render_widget_host_impl.h" | 41 #include "content/browser/renderer_host/render_widget_host_impl.h" |
42 #include "content/common/gpu/client/context_provider_command_buffer.h" | 42 #include "content/common/gpu/client/context_provider_command_buffer.h" |
43 #include "content/common/host_shared_bitmap_manager.h" | 43 #include "content/common/host_shared_bitmap_manager.h" |
44 #include "content/public/common/content_switches.h" | 44 #include "content/public/common/content_switches.h" |
45 #include "gpu/GLES2/gl2extchromium.h" | 45 #include "gpu/GLES2/gl2extchromium.h" |
46 #include "gpu/command_buffer/client/gles2_interface.h" | 46 #include "gpu/command_buffer/client/gles2_interface.h" |
47 #include "gpu/command_buffer/client/shared_memory_limits.h" | 47 #include "gpu/command_buffer/client/shared_memory_limits.h" |
48 #include "gpu/command_buffer/common/mailbox.h" | 48 #include "gpu/command_buffer/common/mailbox.h" |
49 #include "gpu/ipc/client/gpu_channel_host.h" | 49 #include "gpu/ipc/client/gpu_channel_host.h" |
| 50 #include "gpu/ipc/host/gpu_memory_buffer_support.h" |
50 #include "services/service_manager/runner/common/client_util.h" | 51 #include "services/service_manager/runner/common/client_util.h" |
51 #include "third_party/khronos/GLES2/gl2.h" | 52 #include "third_party/khronos/GLES2/gl2.h" |
52 #include "ui/compositor/compositor.h" | 53 #include "ui/compositor/compositor.h" |
53 #include "ui/compositor/compositor_constants.h" | 54 #include "ui/compositor/compositor_constants.h" |
54 #include "ui/compositor/compositor_switches.h" | 55 #include "ui/compositor/compositor_switches.h" |
55 #include "ui/compositor/layer.h" | 56 #include "ui/compositor/layer.h" |
56 #include "ui/display/types/display_snapshot.h" | 57 #include "ui/display/types/display_snapshot.h" |
57 #include "ui/gfx/geometry/size.h" | 58 #include "ui/gfx/geometry/size.h" |
58 #include "ui/gfx/switches.h" | 59 #include "ui/gfx/switches.h" |
59 | 60 |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 gfx::RenderingWindowManager::GetInstance()->UnregisterParent( | 656 gfx::RenderingWindowManager::GetInstance()->UnregisterParent( |
656 compositor->widget()); | 657 compositor->widget()); |
657 #endif | 658 #endif |
658 } | 659 } |
659 | 660 |
660 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } | 661 bool GpuProcessTransportFactory::DoesCreateTestContexts() { return false; } |
661 | 662 |
662 uint32_t GpuProcessTransportFactory::GetImageTextureTarget( | 663 uint32_t GpuProcessTransportFactory::GetImageTextureTarget( |
663 gfx::BufferFormat format, | 664 gfx::BufferFormat format, |
664 gfx::BufferUsage usage) { | 665 gfx::BufferUsage usage) { |
665 return BrowserGpuMemoryBufferManager::GetImageTextureTarget(format, usage); | 666 return gpu::GetImageTextureTarget(format, usage); |
666 } | 667 } |
667 | 668 |
668 gpu::GpuMemoryBufferManager* | 669 gpu::GpuMemoryBufferManager* |
669 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { | 670 GpuProcessTransportFactory::GetGpuMemoryBufferManager() { |
670 return gpu_channel_factory_->GetGpuMemoryBufferManager(); | 671 return gpu_channel_factory_->GetGpuMemoryBufferManager(); |
671 } | 672 } |
672 | 673 |
673 cc::TaskGraphRunner* GpuProcessTransportFactory::GetTaskGraphRunner() { | 674 cc::TaskGraphRunner* GpuProcessTransportFactory::GetTaskGraphRunner() { |
674 return task_graph_runner_.get(); | 675 return task_graph_runner_.get(); |
675 } | 676 } |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 shared_vulkan_context_provider_ = | 905 shared_vulkan_context_provider_ = |
905 cc::VulkanInProcessContextProvider::Create(); | 906 cc::VulkanInProcessContextProvider::Create(); |
906 } | 907 } |
907 | 908 |
908 shared_vulkan_context_provider_initialized_ = true; | 909 shared_vulkan_context_provider_initialized_ = true; |
909 } | 910 } |
910 return shared_vulkan_context_provider_; | 911 return shared_vulkan_context_provider_; |
911 } | 912 } |
912 | 913 |
913 } // namespace content | 914 } // namespace content |
OLD | NEW |