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

Unified Diff: gpu/command_buffer/service/mailbox_manager.h

Issue 1716813002: Use GpuPreferences to avoid directly accessing switches in gpu related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 10 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/mailbox_manager.h
diff --git a/gpu/command_buffer/service/mailbox_manager.h b/gpu/command_buffer/service/mailbox_manager.h
index dd6dd73fbc56bfdbd3ede3d72f9437cde93446f3..d46dafd11efaf6f8f19f51d8c75530af63ad68ed 100644
--- a/gpu/command_buffer/service/mailbox_manager.h
+++ b/gpu/command_buffer/service/mailbox_manager.h
@@ -12,6 +12,7 @@
namespace gpu {
+struct GpuPreferences;
struct SyncToken;
namespace gles2 {
@@ -21,7 +22,8 @@ class Texture;
// Manages resources scoped beyond the context or context group level.
class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> {
public:
- static scoped_refptr<MailboxManager> Create();
+ static scoped_refptr<MailboxManager> Create(
+ const GpuPreferences& gpu_preferences);
// Look up the texture definition from the named mailbox.
virtual Texture* ConsumeTexture(const Mailbox& mailbox) = 0;
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/service/mailbox_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698