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

Unified Diff: gpu/command_buffer/service/async_pixel_transfer_manager.h

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Async upload token part of existing Async command; use separate shared memory to sync async upload … Created 6 years, 10 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: 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,

Powered by Google App Engine
This is Rietveld 408576698