Commit 795ad31c authored by reveman's avatar reveman Committed by Commit bot

content: Make sure GpuProcessHost replies to all outstanding...

content: Make sure GpuProcessHost replies to all outstanding CreateGpuMemoryBuffer requests when GPU process dies.

BUG=
R=piman@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#293634}
parent c986f7cd
......@@ -928,6 +928,13 @@ void GpuProcessHost::SendOutstandingReplies() {
create_command_buffer_requests_.pop();
callback.Run(CREATE_COMMAND_BUFFER_FAILED_AND_CHANNEL_LOST);
}
while (!create_gpu_memory_buffer_requests_.empty()) {
CreateGpuMemoryBufferCallback callback =
create_gpu_memory_buffer_requests_.front();
create_gpu_memory_buffer_requests_.pop();
callback.Run(gfx::GpuMemoryBufferHandle());
}
}
void GpuProcessHost::BlockLiveOffscreenContexts() {
......
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