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

Unified Diff: gpu/command_buffer/service/mailbox_manager_sync.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
Index: gpu/command_buffer/service/mailbox_manager_sync.h
diff --git a/gpu/command_buffer/service/mailbox_manager_sync.h b/gpu/command_buffer/service/mailbox_manager_sync.h
index 1e232b3966d3e90ea386dbcd7aa881b087816c19..f7e6290b1c7780fc5f7fe0f6f92298f4ae6fa489 100644
--- a/gpu/command_buffer/service/mailbox_manager_sync.h
+++ b/gpu/command_buffer/service/mailbox_manager_sync.h
@@ -15,14 +15,12 @@
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/service/mailbox_manager.h"
#include "gpu/command_buffer/service/texture_definition.h"
+#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/gpu_export.h"
namespace gpu {
namespace gles2 {
-class Texture;
-class TextureManager;
-
// Manages resources scoped beyond the context or context group level
// and across threads and driver level share groups by synchronizing
// texture state.
@@ -32,11 +30,11 @@ class GPU_EXPORT MailboxManagerSync : public MailboxManager {
// MailboxManager implementation:
Texture* ConsumeTexture(const Mailbox& mailbox) override;
- void ProduceTexture(const Mailbox& mailbox, Texture* texture) override;
+ void ProduceTexture(const Mailbox& mailbox, TextureBase* texture) override;
bool UsesSync() override;
void PushTextureUpdates(const SyncToken& token) override;
void PullTextureUpdates(const SyncToken& token) override;
- void TextureDeleted(Texture* texture) override;
+ void TextureDeleted(TextureBase* texture) override;
private:
friend class base::RefCounted<MailboxManager>;
@@ -84,7 +82,7 @@ class GPU_EXPORT MailboxManagerSync : public MailboxManager {
unsigned version;
scoped_refptr<TextureGroup> group;
};
- static void UpdateDefinitionLocked(Texture* texture,
+ static void UpdateDefinitionLocked(TextureBase* texture,
TextureGroupRef* group_ref);
typedef std::map<Texture*, TextureGroupRef> TextureToGroupMap;
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager_impl.cc ('k') | gpu/command_buffer/service/mailbox_manager_sync.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698