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

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

Issue 1936773002: Move attributes and context type out to ContextProviderCommandBuffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rmwgc3d
Patch Set: attributes: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
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 0868cb8458c74cc0627ea9fa0ce0888c2af49f6e..1ab6c84f7709ae4167a228659330b24291952335 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -189,11 +189,11 @@ void GLHelperHolder::Initialize() {
std::unique_ptr<WebGraphicsContext3DCommandBufferImpl> context(
new WebGraphicsContext3DCommandBufferImpl(
gpu::kNullSurfaceHandle, // offscreen
- url, gpu_channel_host.get(), attributes, gfx::PreferIntegratedGpu,
+ url, gpu_channel_host.get(), gfx::PreferIntegratedGpu,
automatic_flushes));
- provider_ =
- new ContextProviderCommandBuffer(std::move(context), limits, nullptr,
- BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
+ provider_ = new ContextProviderCommandBuffer(
+ std::move(context), limits, attributes, nullptr,
+ command_buffer_metrics::BROWSER_OFFSCREEN_MAINTHREAD_CONTEXT);
if (!provider_->BindToCurrentThread())
return;
provider_->ContextGL()->TraceBeginCHROMIUM(
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/common/gpu/client/command_buffer_metrics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698