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

Side by Side Diff: gpu/command_buffer/service/mailbox_manager.h

Issue 1394543003: Added SyncToken command buffer trait to help with IPC messages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "gpu/command_buffer/common/mailbox.h" 9 #include "gpu/command_buffer/common/mailbox.h"
10 #include "gpu/gpu_export.h" 10 #include "gpu/gpu_export.h"
11 11
12 namespace gpu { 12 namespace gpu {
13
14 struct SyncToken;
15
13 namespace gles2 { 16 namespace gles2 {
14 17
15 class Texture; 18 class Texture;
16 struct SyncToken;
17 19
18 // Manages resources scoped beyond the context or context group level. 20 // Manages resources scoped beyond the context or context group level.
19 class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> { 21 class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> {
20 public: 22 public:
21 static scoped_refptr<MailboxManager> Create(); 23 static scoped_refptr<MailboxManager> Create();
22 24
23 // Look up the texture definition from the named mailbox. 25 // Look up the texture definition from the named mailbox.
24 virtual Texture* ConsumeTexture(const Mailbox& mailbox) = 0; 26 virtual Texture* ConsumeTexture(const Mailbox& mailbox) = 0;
25 27
26 // Put the texture into the named mailbox. 28 // Put the texture into the named mailbox.
(...skipping 17 matching lines...) Expand all
44 friend class base::RefCounted<MailboxManager>; 46 friend class base::RefCounted<MailboxManager>;
45 47
46 DISALLOW_COPY_AND_ASSIGN(MailboxManager); 48 DISALLOW_COPY_AND_ASSIGN(MailboxManager);
47 }; 49 };
48 50
49 } // namespage gles2 51 } // namespage gles2
50 } // namespace gpu 52 } // namespace gpu
51 53
52 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_ 54 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_H_
53 55
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698