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

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

Issue 2315313003: Add a base class of Texture for interfacing with the mailbox manager. (Closed)
Patch Set: Address piman's comments Created 4 years, 3 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 | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/mailbox_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d46dafd11efaf6f8f19f51d8c75530af63ad68ed..1d9ce635a0d1a09d7b4146d2afbbc04fc8b0e28f 100644
--- a/gpu/command_buffer/service/mailbox_manager.h
+++ b/gpu/command_buffer/service/mailbox_manager.h
@@ -17,7 +17,7 @@ struct SyncToken;
namespace gles2 {
-class Texture;
+class TextureBase;
// Manages resources scoped beyond the context or context group level.
class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> {
@@ -26,10 +26,10 @@ class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> {
const GpuPreferences& gpu_preferences);
// Look up the texture definition from the named mailbox.
- virtual Texture* ConsumeTexture(const Mailbox& mailbox) = 0;
+ virtual TextureBase* ConsumeTexture(const Mailbox& mailbox) = 0;
// Put the texture into the named mailbox.
- virtual void ProduceTexture(const Mailbox& mailbox, Texture* texture) = 0;
+ virtual void ProduceTexture(const Mailbox& mailbox, TextureBase* texture) = 0;
// If |true| then Pull/PushTextureUpdates() needs to be called.
virtual bool UsesSync() = 0;
@@ -39,7 +39,7 @@ class GPU_EXPORT MailboxManager : public base::RefCounted<MailboxManager> {
virtual void PullTextureUpdates(const SyncToken& token) = 0;
// Destroy any mailbox that reference the given texture.
- virtual void TextureDeleted(Texture* texture) = 0;
+ virtual void TextureDeleted(TextureBase* texture) = 0;
protected:
MailboxManager() {}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/mailbox_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698