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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: fix test dcheck failures 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/browser/renderer_host/compositor_impl_android.cc ('k') | content/common/gpu_stream_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 3d5e597188c7408a5d07df7f34927b96ab9a78e0..9c5c0889d04f4cead3f3acbf0f55245f7a33fbba 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -60,6 +60,7 @@
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_input_event_router.h"
+#include "content/common/gpu_stream_constants.h"
#include "content/common/input_messages.h"
#include "content/common/site_isolation_policy.h"
#include "content/common/view_messages.h"
@@ -175,6 +176,9 @@ void GLHelperHolder::Initialize() {
if (!gpu_channel_host)
return;
+ int32_t stream_id = kGpuStreamIdDefault;
+ gpu::SchedulingPriority stream_priority = kGpuStreamPriorityUI;
+
// This is for an offscreen context, so we don't need the default framebuffer
// to have alpha, stencil, depth, antialiasing.
gpu::gles2::ContextCreationAttribHelper attributes;
@@ -202,9 +206,9 @@ void GLHelperHolder::Initialize() {
const GURL url("chrome://gpu/RenderWidgetHostViewAndroid");
provider_ = new ui::ContextProviderCommandBuffer(
- std::move(gpu_channel_host), gpu::GPU_STREAM_DEFAULT,
- gpu::GpuStreamPriority::NORMAL, gpu::kNullSurfaceHandle, url,
- automatic_flushes, support_locking, limits, attributes, nullptr,
+ std::move(gpu_channel_host), stream_id, stream_priority,
+ gpu::kNullSurfaceHandle, url, automatic_flushes, support_locking, limits,
+ attributes, nullptr,
ui::command_buffer_metrics::BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
if (!provider_->BindToCurrentThread())
return;
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/common/gpu_stream_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698