Chromium Code Reviews| Index: gpu/command_buffer/service/async_pixel_transfer_manager.h |
| diff --git a/gpu/command_buffer/service/async_pixel_transfer_manager.h b/gpu/command_buffer/service/async_pixel_transfer_manager.h |
| index d0ea5da153c4cf08cdd292d278702c70732949f2..a10b6ac69547231ee5e2063b84f5d1e093a636fa 100644 |
| --- a/gpu/command_buffer/service/async_pixel_transfer_manager.h |
| +++ b/gpu/command_buffer/service/async_pixel_transfer_manager.h |
| @@ -62,6 +62,10 @@ class GPU_EXPORT AsyncPixelTransferManager |
| virtual void BindCompletedAsyncTransfers() = 0; |
| + // Run the given callback when all already queued tasks has been processed. |
| + // This includes asynchronous upload tasks. |
|
piman
2014/02/07 22:58:20
I'm not the biggest fan of this pattern, because i
jadahl
2014/02/08 09:18:25
Sounds reasonable to pass the callback to AsyncTex
jadahl
2014/02/09 11:54:52
Reconsidering this, I think we still need somethin
|
| + virtual void AsyncRun(const base::Closure& callback) = 0; |
|
epennerAtGoogle
2014/02/07 20:43:58
This leads to duplicate work happening here where
jadahl
2014/02/08 09:18:25
I'm thinking, can't we just handle those queries c
|
| + |
| // There's no guarantee that callback will run on the caller thread. |
| virtual void AsyncNotifyCompletion( |
| const AsyncMemoryParams& mem_params, |