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; |