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

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 253663002: WebGL: Wait for the sync point that the compositor inserted before deleting a mailbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: build fix due to -Werror=sign-compare Created 6 years, 8 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 | « no previous file | Source/platform/graphics/gpu/DrawingBufferTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 4967200760aa47b3e78f2992546dea0e3f31bb55..8927cd7eb2ea07757d87929eff452128fe81650e 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -344,6 +344,8 @@ void DrawingBuffer::deleteMailbox(const blink::WebExternalTextureMailbox& mailbo
{
for (size_t i = 0; i < m_textureMailboxes.size(); i++) {
if (nameEquals(m_textureMailboxes[i]->mailbox, mailbox)) {
+ if (mailbox.syncPoint)
+ m_context->waitSyncPoint(mailbox.syncPoint);
m_context->deleteTexture(m_textureMailboxes[i]->textureId);
m_textureMailboxes.remove(i);
return;
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/DrawingBufferTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698