Commit e0a7f32d authored by boliu@chromium.org's avatar boliu@chromium.org

Add missing lock in RetireSyncPointOnGpuThread

BUG=394491

Review URL: https://codereview.chromium.org/407683002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284351 0039d316-1c4b-4281-b951-d872f2087c98
parent 1cd5cf75
......@@ -698,8 +698,15 @@ void InProcessCommandBuffer::RetireSyncPoint(uint32 sync_point) {
void InProcessCommandBuffer::RetireSyncPointOnGpuThread(uint32 sync_point) {
gles2::MailboxManager* mailbox_manager =
decoder_->GetContextGroup()->mailbox_manager();
if (mailbox_manager->UsesSync() && MakeCurrent())
mailbox_manager->PushTextureUpdates();
if (mailbox_manager->UsesSync()) {
bool make_current_success = false;
{
base::AutoLock lock(command_buffer_lock_);
make_current_success = MakeCurrent();
}
if (make_current_success)
mailbox_manager->PushTextureUpdates();
}
g_sync_point_manager.Get().RetireSyncPoint(sync_point);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment