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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2107783003: Pass initial size and GPU preference via context attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gpu/ipc/common/OWNERS presubmit Created 4 years, 6 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/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 593b3876710625342178fa04eabe902da3ac400d..86e93259c82ade49f3fcfba3f9f91c426c68d940 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -437,8 +437,7 @@ scoped_refptr<ContextProviderCommandBuffer> CreateOffscreenContext(
std::move(gpu_channel_host), stream_id, stream_priority,
gpu::kNullSurfaceHandle,
GURL("chrome://gpu/RenderThreadImpl::CreateOffscreenContext"),
- gl::PreferIntegratedGpu, automatic_flushes, support_locking, limits,
- attributes, nullptr, type));
+ automatic_flushes, support_locking, limits, attributes, nullptr, type));
}
} // namespace
@@ -1882,8 +1881,7 @@ RenderThreadImpl::CreateCompositorOutputSurface(
new ContextProviderCommandBuffer(
gpu_channel_host, gpu::GPU_STREAM_DEFAULT,
gpu::GpuStreamPriority::NORMAL, gpu::kNullSurfaceHandle, url,
- gl::PreferIntegratedGpu, automatic_flushes, support_locking, limits,
- attributes, share_context,
+ automatic_flushes, support_locking, limits, attributes, share_context,
command_buffer_metrics::RENDER_COMPOSITOR_CONTEXT));
if (layout_test_deps_) {

Powered by Google App Engine
This is Rietveld 408576698