Index: gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc |
diff --git a/gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc b/gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc |
index e670dc744977118c64ae5c4070551fa002bf5aec..99103b81c65649f1403591a7b916c66e934af9ef 100644 |
--- a/gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc |
+++ b/gpu/command_buffer/service/async_pixel_transfer_manager_share_group.cc |
@@ -534,6 +534,16 @@ bool AsyncPixelTransferManagerShareGroup::NeedsProcessMorePendingTransfers() { |
return false; |
} |
+void AsyncPixelTransferManagerShareGroup::WaitAllAsyncTexImage2D() { |
+ if (shared_state_.pending_allocations.empty()) |
+ return; |
+ |
+ AsyncPixelTransferDelegateShareGroup* delegate = |
+ shared_state_.pending_allocations.back().get(); |
+ if (delegate) |
+ delegate->WaitForTransferCompletion(); |
+} |
+ |
AsyncPixelTransferDelegate* |
AsyncPixelTransferManagerShareGroup::CreatePixelTransferDelegateImpl( |
gles2::TextureRef* ref, |