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

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.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
Index: gpu/command_buffer/service/in_process_command_buffer.h
diff --git a/gpu/command_buffer/service/in_process_command_buffer.h b/gpu/command_buffer/service/in_process_command_buffer.h
index e8ccb33ede2602b9f705e051506db2b0f26b4d50..a5f7824193af5b93917b00b677392079b3f0935c 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.h
+++ b/gpu/command_buffer/service/in_process_command_buffer.h
@@ -26,6 +26,7 @@
#include "gpu/command_buffer/client/gpu_control.h"
#include "gpu/command_buffer/common/command_buffer.h"
#include "gpu/command_buffer/service/gpu_preferences.h"
+#include "gpu/config/gpu_driver_bug_workarounds.h"
#include "gpu/gpu_export.h"
#include "ui/gfx/gpu_memory_buffer.h"
#include "ui/gfx/native_widget_types.h"
@@ -134,7 +135,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
class Service {
public:
Service();
- explicit Service(const gpu::GpuPreferences& gpu_preferences);
+ Service(const gpu::GpuPreferences& gpu_preferences);
virtual ~Service();
virtual void AddRef() const = 0;
@@ -154,6 +155,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
framebuffer_completeness_cache() = 0;
virtual SyncPointManager* sync_point_manager() = 0;
const GpuPreferences& gpu_preferences();
+ const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds();
scoped_refptr<gfx::GLShareGroup> share_group();
scoped_refptr<gles2::MailboxManager> mailbox_manager();
scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set();
@@ -162,6 +164,7 @@ class GPU_EXPORT InProcessCommandBuffer : public CommandBuffer,
private:
const GpuPreferences gpu_preferences_;
+ const GpuDriverBugWorkarounds gpu_driver_bug_workarounds_;
scoped_refptr<gfx::GLShareGroup> share_group_;
scoped_refptr<gles2::MailboxManager> mailbox_manager_;
scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set_;
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698