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

Unified Diff: gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased; removed unnecessary barrier; use CheckedNumeric Created 6 years, 9 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_sync.cc
diff --git a/gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc b/gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc
index ffe55849358138be11af5ca98f40e6be51a7c09e..5f0d0e8cb4757957fe4370626f28ecafbcc43ec4 100644
--- a/gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc
+++ b/gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc
@@ -107,6 +107,11 @@ void AsyncPixelTransferManagerSync::BindCompletedAsyncTransfers() {
// Everything is already bound.
}
+void AsyncPixelTransferManagerSync::AsyncRunWhenCompleted(
+ base::Callback<void()> callback) {
+ callback.Run();
+}
+
void AsyncPixelTransferManagerSync::AsyncNotifyCompletion(
const AsyncMemoryParams& mem_params,
AsyncPixelTransferCompletionObserver* observer) {

Powered by Google App Engine
This is Rietveld 408576698