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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: Do not allow HIGH priority contexts by unprivileged clients. Created 3 years, 8 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 attributes.sample_buffers = 0; 154 attributes.sample_buffers = 0;
155 attributes.bind_generates_resource = false; 155 attributes.bind_generates_resource = false;
156 attributes.lose_context_when_out_of_memory = true; 156 attributes.lose_context_when_out_of_memory = true;
157 attributes.buffer_preserved = false; 157 attributes.buffer_preserved = false;
158 158
159 constexpr bool automatic_flushes = false; 159 constexpr bool automatic_flushes = false;
160 160
161 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon"); 161 GURL url("chrome://gpu/GpuProcessTransportFactory::CreateContextCommon");
162 return make_scoped_refptr(new ui::ContextProviderCommandBuffer( 162 return make_scoped_refptr(new ui::ContextProviderCommandBuffer(
163 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT, 163 std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT,
164 gpu::GpuStreamPriority::NORMAL, surface_handle, url, automatic_flushes, 164 gpu::GpuStreamPriority::REAL_TIME, surface_handle, url, automatic_flushes,
165 support_locking, gpu::SharedMemoryLimits(), attributes, 165 support_locking, gpu::SharedMemoryLimits(), attributes,
166 shared_context_provider, type)); 166 shared_context_provider, type));
167 } 167 }
168 168
169 #if defined(OS_MACOSX) 169 #if defined(OS_MACOSX)
170 bool IsCALayersDisabledFromCommandLine() { 170 bool IsCALayersDisabledFromCommandLine() {
171 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 171 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
172 return command_line->HasSwitch(switches::kDisableMacOverlays); 172 return command_line->HasSwitch(switches::kDisableMacOverlays);
173 } 173 }
174 #endif 174 #endif
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 shared_vulkan_context_provider_ = 923 shared_vulkan_context_provider_ =
924 cc::VulkanInProcessContextProvider::Create(); 924 cc::VulkanInProcessContextProvider::Create();
925 } 925 }
926 926
927 shared_vulkan_context_provider_initialized_ = true; 927 shared_vulkan_context_provider_initialized_ = true;
928 } 928 }
929 return shared_vulkan_context_provider_; 929 return shared_vulkan_context_provider_;
930 } 930 }
931 931
932 } // namespace content 932 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/compositor_impl_android.cc » ('j') | gpu/ipc/service/gpu_channel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698