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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_win.cc

Issue 290573011: Delay the response to ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer via a callback to allow for b… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
Index: content/common/gpu/client/gpu_memory_buffer_impl_win.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_win.cc b/content/common/gpu/client/gpu_memory_buffer_impl_win.cc
index 8da027bbb5b0bb475b10e31c3b8ed5fdfe4a708d..7c6cbfafed9c65c4c829fce0e41a6da36ecc734e 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_win.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_win.cc
@@ -32,15 +32,16 @@ void GpuMemoryBufferImpl::AllocateForChildProcess(
unsigned internalformat,
unsigned usage,
base::ProcessHandle child_process,
- gfx::GpuMemoryBufferHandle* handle) {
+ gfx::GpuMemoryBufferHandle* handle,
+ const base::Closure& allocate_callback) {
+ handle->type = gfx::EMPTY_BUFFER;
if (GpuMemoryBufferImplShm::IsConfigurationSupported(
size, internalformat, usage)) {
GpuMemoryBufferImplShm::AllocateSharedMemoryForChildProcess(
size, internalformat, child_process, handle);
- return;
}
- handle->type = gfx::EMPTY_BUFFER;
+ allocate_callback.Run();
}
// static

Powered by Google App Engine
This is Rietveld 408576698