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

Unified Diff: gpu/command_buffer/service/mailbox_manager_impl.cc

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_impl.cc
diff --git a/gpu/command_buffer/service/mailbox_manager_impl.cc b/gpu/command_buffer/service/mailbox_manager_impl.cc
index a8ce6eda49f8c5a03c01ed97d6f0efd1cb6ab565..a1df7f1d2acb8d40111a2e0501d0920338d5f9bf 100644
--- a/gpu/command_buffer/service/mailbox_manager_impl.cc
+++ b/gpu/command_buffer/service/mailbox_manager_impl.cc
@@ -25,7 +25,7 @@ bool MailboxManagerImpl::UsesSync() {
return false;
}
-Texture* MailboxManagerImpl::ConsumeTexture(const Mailbox& mailbox) {
+TextureBase* MailboxManagerImpl::ConsumeTexture(const Mailbox& mailbox) {
MailboxToTextureMap::iterator it =
mailbox_to_textures_.find(mailbox);
if (it != mailbox_to_textures_.end())
@@ -35,7 +35,7 @@ Texture* MailboxManagerImpl::ConsumeTexture(const Mailbox& mailbox) {
}
void MailboxManagerImpl::ProduceTexture(const Mailbox& mailbox,
- Texture* texture) {
+ TextureBase* texture) {
MailboxToTextureMap::iterator it = mailbox_to_textures_.find(mailbox);
if (it != mailbox_to_textures_.end()) {
if (it->second->first == texture)
@@ -49,7 +49,7 @@ void MailboxManagerImpl::ProduceTexture(const Mailbox& mailbox,
}
void MailboxManagerImpl::InsertTexture(const Mailbox& mailbox,
- Texture* texture) {
+ TextureBase* texture) {
texture->SetMailboxManager(this);
TextureToMailboxMap::iterator texture_it =
textures_to_mailboxes_.insert(std::make_pair(texture, mailbox));
@@ -57,7 +57,7 @@ void MailboxManagerImpl::InsertTexture(const Mailbox& mailbox,
DCHECK_EQ(mailbox_to_textures_.size(), textures_to_mailboxes_.size());
}
-void MailboxManagerImpl::TextureDeleted(Texture* texture) {
+void MailboxManagerImpl::TextureDeleted(TextureBase* texture) {
std::pair<TextureToMailboxMap::iterator,
TextureToMailboxMap::iterator> range =
textures_to_mailboxes_.equal_range(texture);
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager_impl.h ('k') | gpu/command_buffer/service/mailbox_manager_sync.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698