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

Unified Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 1871613002: Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/gpu_command_buffer_stub.cc
diff --git a/gpu/ipc/service/gpu_command_buffer_stub.cc b/gpu/ipc/service/gpu_command_buffer_stub.cc
index ac3ddcab447bf1f6d3428376ad78e690ba549d3e..c9443ee73c2f2d5b07fa1e1d00969d66be1cc825 100644
--- a/gpu/ipc/service/gpu_command_buffer_stub.cc
+++ b/gpu/ipc/service/gpu_command_buffer_stub.cc
@@ -210,13 +210,15 @@ GpuCommandBufferStub::GpuCommandBufferStub(
DCHECK(context_group_->bind_generates_resource() ==
attrib_parser.bind_generates_resource);
} else {
+ scoped_refptr<gles2::FeatureInfo> feature_info = new gles2::FeatureInfo(
+ channel_->gpu_channel_manager()->gpu_driver_bug_workarounds());
context_group_ = new gles2::ContextGroup(
channel_->gpu_channel_manager()->gpu_preferences(), mailbox_manager,
new GpuCommandBufferMemoryTracker(channel,
command_buffer_id_.GetUnsafeValue()),
channel_->gpu_channel_manager()->shader_translator_cache(),
- channel_->gpu_channel_manager()->framebuffer_completeness_cache(), NULL,
- subscription_ref_set, pending_valuebuffer_state,
+ channel_->gpu_channel_manager()->framebuffer_completeness_cache(),
+ feature_info, subscription_ref_set, pending_valuebuffer_state,
attrib_parser.bind_generates_resource);
}
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698