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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.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: 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: gpu/command_buffer/service/in_process_command_buffer.cc
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc
index 9483bf1c928833feb3b2ba7e8f84fbcb43502ff8..378e9fb5ecf1fe858166f889cb63187d94709def 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.cc
+++ b/gpu/command_buffer/service/in_process_command_buffer.cc
@@ -153,8 +153,11 @@ scoped_refptr<InProcessCommandBuffer::Service> GetInitialService(
InProcessCommandBuffer::Service::Service() {}
-InProcessCommandBuffer::Service::Service(const GpuPreferences& gpu_preferences)
- : gpu_preferences_(gpu_preferences) {}
+InProcessCommandBuffer::Service::Service(
+ const GpuPreferences& gpu_preferences,
+ const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds)
+ : gpu_preferences_(gpu_preferences),
+ gpu_driver_bug_workarounds_(gpu_driver_bug_workarounds) {}
InProcessCommandBuffer::Service::~Service() {}
@@ -163,6 +166,11 @@ InProcessCommandBuffer::Service::gpu_preferences() {
return gpu_preferences_;
}
+const gpu::GpuDriverBugWorkarounds&
+InProcessCommandBuffer::Service::gpu_driver_bug_workarounds() {
+ return gpu_driver_bug_workarounds_;
+}
+
scoped_refptr<gfx::GLShareGroup>
InProcessCommandBuffer::Service::share_group() {
if (!share_group_.get())
@@ -347,6 +355,7 @@ bool InProcessCommandBuffer::InitializeOnGpuThread(
params.context_group
? params.context_group->decoder_->GetContextGroup()
: new gles2::ContextGroup(service_->gpu_preferences(),
+ service_->gpu_driver_bug_workarounds(),
service_->mailbox_manager(), NULL,
service_->shader_translator_cache(),
service_->framebuffer_completeness_cache(),

Powered by Google App Engine
This is Rietveld 408576698