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

Unified Diff: content/renderer/render_thread_impl.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 | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index d3081f7fd8a9e66f9111a96d4d7af1a29eec25ce..9dad0206afcd8f05445f0486fe1a066391a0249b 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -75,7 +75,6 @@
#include "content/common/field_trial_recorder.mojom.h"
#include "content/common/frame_messages.h"
#include "content/common/frame_owner_properties.h"
-#include "content/common/gpu_stream_constants.h"
#include "content/common/render_process_messages.h"
#include "content/common/resource_messages.h"
#include "content/common/site_isolation_policy.h"
@@ -367,7 +366,7 @@
bool support_locking,
ui::command_buffer_metrics::ContextType type,
int32_t stream_id,
- gpu::SchedulingPriority stream_priority) {
+ gpu::GpuStreamPriority stream_priority) {
DCHECK(gpu_channel_host);
// This is used to create a few different offscreen contexts:
// - The shared main thread context (offscreen) used by blink for canvas.
@@ -1397,7 +1396,8 @@
scoped_refptr<ui::ContextProviderCommandBuffer> media_context_provider =
CreateOffscreenContext(gpu_channel_host, limits, support_locking,
ui::command_buffer_metrics::MEDIA_CONTEXT,
- kGpuStreamIdDefault, kGpuStreamPriorityDefault);
+ gpu::GPU_STREAM_DEFAULT,
+ gpu::GpuStreamPriority::NORMAL);
if (!media_context_provider->BindToCurrentThread())
return nullptr;
@@ -1447,7 +1447,7 @@
shared_main_thread_contexts_ = CreateOffscreenContext(
std::move(gpu_channel_host), gpu::SharedMemoryLimits(), support_locking,
ui::command_buffer_metrics::RENDERER_MAINTHREAD_CONTEXT,
- kGpuStreamIdDefault, kGpuStreamPriorityDefault);
+ gpu::GPU_STREAM_DEFAULT, gpu::GpuStreamPriority::NORMAL);
if (!shared_main_thread_contexts_->BindToCurrentThread())
shared_main_thread_contexts_ = nullptr;
return shared_main_thread_contexts_;
@@ -1960,9 +1960,9 @@
scoped_refptr<ui::ContextProviderCommandBuffer> context_provider(
new ui::ContextProviderCommandBuffer(
- gpu_channel_host, kGpuStreamIdDefault, kGpuStreamPriorityDefault,
- gpu::kNullSurfaceHandle, url, automatic_flushes, support_locking,
- limits, attributes, share_context,
+ gpu_channel_host, gpu::GPU_STREAM_DEFAULT,
+ gpu::GpuStreamPriority::NORMAL, gpu::kNullSurfaceHandle, url,
+ automatic_flushes, support_locking, limits, attributes, share_context,
ui::command_buffer_metrics::RENDER_COMPOSITOR_CONTEXT));
if (layout_test_deps_) {
@@ -2303,11 +2303,11 @@
return shared_worker_context_provider_;
}
- int32_t stream_id = kGpuStreamIdDefault;
- gpu::SchedulingPriority stream_priority = kGpuStreamPriorityDefault;
+ int32_t stream_id = gpu::GPU_STREAM_DEFAULT;
+ gpu::GpuStreamPriority stream_priority = gpu::GpuStreamPriority::NORMAL;
if (is_async_worker_context_enabled_) {
- stream_id = kGpuStreamIdWorker;
- stream_priority = kGpuStreamPriorityWorker;
+ stream_id = gpu_channel_host->GenerateStreamID();
+ stream_priority = gpu::GpuStreamPriority::LOW;
}
bool support_locking = true;
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698