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

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

Issue 2317363005: Add basic GL functionality to the passthrough command buffer. (Closed)
Patch Set: 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/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index 8899aaee3edf69bcbeb6604863f993b21afe53bc..dfcf921e50083ae380e8a9ea0c4bb013d80ef22f 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -372,6 +372,14 @@ void TextureBase::SetMailboxManager(MailboxManager* mailbox_manager) {
mailbox_manager_ = mailbox_manager;
}
+TexturePassthrough::TexturePassthrough(GLuint service_id)
+ : TextureBase(service_id) {}
+
+TexturePassthrough::~TexturePassthrough() {
+ DeleteFromMailboxManager();
+ glDeleteTextures(1, &service_id_);
+}
+
Texture::Texture(GLuint service_id)
: TextureBase(service_id),
memory_tracking_ref_(NULL),
« gpu/command_buffer/service/texture_manager.h ('K') | « gpu/command_buffer/service/texture_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698