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

Unified Diff: services/ui/public/cpp/gpu/gpu.cc

Issue 2881813002: Revert of gpu: GPU service scheduler. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/public/cpp/gpu/context_provider_command_buffer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/public/cpp/gpu/gpu.cc
diff --git a/services/ui/public/cpp/gpu/gpu.cc b/services/ui/public/cpp/gpu/gpu.cc
index e70ca6f40e086283d15d5e920457bafce42b3c8f..e0073d5d174cffd0ed178768ececa925dab01573 100644
--- a/services/ui/public/cpp/gpu/gpu.cc
+++ b/services/ui/public/cpp/gpu/gpu.cc
@@ -7,7 +7,6 @@
#include "base/memory/ptr_util.h"
#include "base/threading/thread_task_runner_handle.h"
#include "build/build_config.h"
-#include "gpu/command_buffer/common/scheduling_priority.h"
#include "mojo/public/cpp/bindings/sync_call_restrictions.h"
#include "mojo/public/cpp/system/platform_handle.h"
#include "services/service_manager/public/cpp/connector.h"
@@ -60,12 +59,8 @@
scoped_refptr<cc::ContextProvider> Gpu::CreateContextProvider(
scoped_refptr<gpu::GpuChannelHost> gpu_channel) {
- int32_t stream_id = 0;
- gpu::SchedulingPriority stream_priority = gpu::SchedulingPriority::kNormal;
-
constexpr bool automatic_flushes = false;
constexpr bool support_locking = false;
-
gpu::gles2::ContextCreationAttribHelper attributes;
attributes.alpha_size = -1;
attributes.depth_size = 0;
@@ -74,11 +69,12 @@
attributes.sample_buffers = 0;
attributes.bind_generates_resource = false;
attributes.lose_context_when_out_of_memory = true;
- ui::ContextProviderCommandBuffer* shared_context_provider = nullptr;
+ constexpr ui::ContextProviderCommandBuffer* shared_context_provider = nullptr;
return make_scoped_refptr(new ui::ContextProviderCommandBuffer(
- std::move(gpu_channel), stream_id, stream_priority,
- gpu::kNullSurfaceHandle, GURL("chrome://gpu/MusContextFactory"),
- automatic_flushes, support_locking, gpu::SharedMemoryLimits(), attributes,
+ std::move(gpu_channel), gpu::GPU_STREAM_DEFAULT,
+ gpu::GpuStreamPriority::NORMAL, gpu::kNullSurfaceHandle,
+ GURL("chrome://gpu/MusContextFactory"), automatic_flushes,
+ support_locking, gpu::SharedMemoryLimits(), attributes,
shared_context_provider, ui::command_buffer_metrics::MUS_CLIENT_CONTEXT));
}
« no previous file with comments | « services/ui/public/cpp/gpu/context_provider_command_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698