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

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

Issue 2207253002: Unbind video texture from mailbox after copying to WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 years, 4 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.cc
diff --git a/gpu/command_buffer/service/mailbox_manager_sync.cc b/gpu/command_buffer/service/mailbox_manager_sync.cc
index d07a3ddeb09b8bc903aeae41507d2a2747ac8d57..5a79a41c2ecb7d0ec4497e1132a35ab5bd15bde7 100644
--- a/gpu/command_buffer/service/mailbox_manager_sync.cc
+++ b/gpu/command_buffer/service/mailbox_manager_sync.cc
@@ -239,6 +239,9 @@ void MailboxManagerSync::ProduceTexture(const Mailbox& mailbox,
group_for_mailbox->RemoveName(mailbox);
}
+ if (!texture)
+ return;
+
if (group_for_texture) {
group_for_texture->AddName(mailbox);
} else {
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager_impl.cc ('k') | third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698