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

Unified Diff: components/mus/gles2/gpu_state.h

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 | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/gles2/gpu_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/gpu_state.h
diff --git a/components/mus/gles2/gpu_state.h b/components/mus/gles2/gpu_state.h
index aec23e4f11d399f28143bd3c8642166e7ffa75c9..27e239ad402135f76cf33df1d9593366501de774 100644
--- a/components/mus/gles2/gpu_state.h
+++ b/components/mus/gles2/gpu_state.h
@@ -14,6 +14,7 @@
#include "gpu/command_buffer/service/gpu_preferences.h"
#include "gpu/command_buffer/service/mailbox_manager_impl.h"
#include "gpu/command_buffer/service/sync_point_manager.h"
+#include "gpu/config/gpu_driver_bug_workarounds.h"
#include "gpu/config/gpu_info.h"
#include "ui/gl/gl_share_group.h"
@@ -42,6 +43,10 @@ class GpuState : public base::RefCountedThreadSafe<GpuState> {
return gpu_preferences_;
}
+ const gpu::GpuDriverBugWorkarounds& gpu_driver_bug_workarounds() const {
+ return gpu_driver_bug_workarounds_;
+ }
+
CommandBufferTaskRunner* command_buffer_task_runner() const {
return command_buffer_task_runner_.get();
}
@@ -86,6 +91,7 @@ class GpuState : public base::RefCountedThreadSafe<GpuState> {
scoped_refptr<base::SingleThreadTaskRunner> control_thread_task_runner_;
gpu::GpuPreferences gpu_preferences_;
+ const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_;
scoped_refptr<CommandBufferTaskRunner> command_buffer_task_runner_;
scoped_ptr<CommandBufferDriverManager> driver_manager_;
scoped_ptr<gpu::SyncPointManager> sync_point_manager_;
« no previous file with comments | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/gles2/gpu_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698