Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.cc

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 attributes.sample_buffers = 0; 155 attributes.sample_buffers = 0;
156 attributes.bind_generates_resource = false; 156 attributes.bind_generates_resource = false;
157 attributes.lose_context_when_out_of_memory = true; 157 attributes.lose_context_when_out_of_memory = true;
158 attributes.buffer_preserved = false; 158 attributes.buffer_preserved = false;
159 159
160 constexpr bool automatic_flushes = false; 160 constexpr bool automatic_flushes = false;
161 161
162 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon"); 162 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon");
163 return make_scoped_refptr(new ui::ContextProviderCommandBuffer( 163 return make_scoped_refptr(new ui::ContextProviderCommandBuffer(
164 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT, 164 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT,
165 gpu::GpuStreamPriority::NORMAL, surface_handle, url, automatic_flushes, 165 gpu::GpuStreamPriority::REAL_TIME, surface_handle, url, automatic_flushes,
166 support_locking, gpu::SharedMemoryLimits(), attributes, 166 support_locking, gpu::SharedMemoryLimits(), attributes,
167 shared_context_provider, type)); 167 shared_context_provider, type));
168 } 168 }
169 169
170 #if defined(OS_MACOSX) 170 #if defined(OS_MACOSX)
171 bool IsCALayersDisabledFromCommandLine() { 171 bool IsCALayersDisabledFromCommandLine() {
172 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 172 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
173 return command_line->HasSwitch(switches::kDisableMacOverlays); 173 return command_line->HasSwitch(switches::kDisableMacOverlays);
174 } 174 }
175 #endif 175 #endif
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 shared_vulkan_context_provider_ = 931 shared_vulkan_context_provider_ =
932 cc::VulkanInProcessContextProvider::Create(); 932 cc::VulkanInProcessContextProvider::Create();
933 } 933 }
934 934
935 shared_vulkan_context_provider_initialized_ = true; 935 shared_vulkan_context_provider_initialized_ = true;
936 } 936 }
937 return shared_vulkan_context_provider_; 937 return shared_vulkan_context_provider_;
938 } 938 }
939 939
940 } // namespace content 940 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698