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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2811513002: gpu: Simplify the error handling during gpu memory buffer allocation. (Closed)
Patch Set: tot merge Created 3 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 | « content/browser/gpu/gpu_process_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 7aec4ef6a28854661773fd50d952d8804f95ca69..107d602a34ea4e1a102fb559dd0b80f5d55d8412 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -766,7 +766,7 @@ void GpuProcessHost::OnGpuMemoryBufferCreated(
DCHECK(!create_gpu_memory_buffer_requests_.empty());
auto callback = create_gpu_memory_buffer_requests_.front();
create_gpu_memory_buffer_requests_.pop();
- callback.Run(handle);
+ callback.Run(handle, BufferCreationStatus::SUCCESS);
}
#if defined(OS_ANDROID)
@@ -1051,7 +1051,8 @@ void GpuProcessHost::SendOutstandingReplies() {
while (!create_gpu_memory_buffer_requests_.empty()) {
auto callback = create_gpu_memory_buffer_requests_.front();
create_gpu_memory_buffer_requests_.pop();
- callback.Run(gfx::GpuMemoryBufferHandle());
+ callback.Run(gfx::GpuMemoryBufferHandle(),
+ BufferCreationStatus::GPU_HOST_INVALID);
}
if (!send_destroying_video_surface_done_cb_.is_null())
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698