| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 attributes.stencil_size = 0; | 122 attributes.stencil_size = 0; |
| 123 attributes.samples = 0; | 123 attributes.samples = 0; |
| 124 attributes.sample_buffers = 0; | 124 attributes.sample_buffers = 0; |
| 125 attributes.bind_generates_resource = false; | 125 attributes.bind_generates_resource = false; |
| 126 attributes.lose_context_when_out_of_memory = true; | 126 attributes.lose_context_when_out_of_memory = true; |
| 127 | 127 |
| 128 bool automatic_flushes = false; | 128 bool automatic_flushes = false; |
| 129 | 129 |
| 130 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon"); | 130 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon"); |
| 131 return make_scoped_refptr(new content::ContextProviderCommandBuffer( | 131 return make_scoped_refptr(new content::ContextProviderCommandBuffer( |
| 132 std::move(gpu_channel_host), surface_handle, url, | 132 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT, |
| 133 gpu::GpuStreamPriority::NORMAL, surface_handle, url, |
| 133 gfx::PreferIntegratedGpu, automatic_flushes, gpu::SharedMemoryLimits(), | 134 gfx::PreferIntegratedGpu, automatic_flushes, gpu::SharedMemoryLimits(), |
| 134 attributes, shared_context_provider, type)); | 135 attributes, shared_context_provider, type)); |
| 135 } | 136 } |
| 136 | 137 |
| 137 #if defined(OS_MACOSX) | 138 #if defined(OS_MACOSX) |
| 138 bool IsCALayersDisabledFromCommandLine() { | 139 bool IsCALayersDisabledFromCommandLine() { |
| 139 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 140 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 140 return command_line->HasSwitch(switches::kDisableMacOverlays); | 141 return command_line->HasSwitch(switches::kDisableMacOverlays); |
| 141 } | 142 } |
| 142 #endif | 143 #endif |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 shared_vulkan_context_provider_ = | 782 shared_vulkan_context_provider_ = |
| 782 cc::VulkanInProcessContextProvider::Create(); | 783 cc::VulkanInProcessContextProvider::Create(); |
| 783 } | 784 } |
| 784 | 785 |
| 785 shared_vulkan_context_provider_initialized_ = true; | 786 shared_vulkan_context_provider_initialized_ = true; |
| 786 } | 787 } |
| 787 return shared_vulkan_context_provider_; | 788 return shared_vulkan_context_provider_; |
| 788 } | 789 } |
| 789 | 790 |
| 790 } // namespace content | 791 } // namespace content |
| OLD | NEW |