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

Unified Diff: gpu/command_buffer/client/mapped_memory.h

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: [WIP] Introduced internal SetAsyncToken command buffer command Created 6 years, 11 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/client/mapped_memory.h
diff --git a/gpu/command_buffer/client/mapped_memory.h b/gpu/command_buffer/client/mapped_memory.h
index b8f3129eb4a3cddf452e9fabe30ec62a1af12eda..78fd95ef0dfbca466a76749a5bf57691545d7373 100644
--- a/gpu/command_buffer/client/mapped_memory.h
+++ b/gpu/command_buffer/client/mapped_memory.h
@@ -79,6 +79,10 @@ class GPU_EXPORT MemoryChunk {
allocator_.FreePendingToken(pointer, token);
}
+ void FreePendingAsyncToken(void* pointer, uint32 async_token) {
+ allocator_.FreePendingAsyncToken(pointer, async_token);
+ }
+
// Frees any blocks whose tokens have passed.
void FreeUnused() {
allocator_.FreeUnused();
@@ -153,6 +157,8 @@ class GPU_EXPORT MappedMemoryManager {
// token: the token value to wait for before re-using the memory.
void FreePendingToken(void* pointer, int32 token);
+ void FreePendingAsyncToken(void *pointer, uint32 async_token);
+
// Free Any Shared memory that is not in use.
void FreeUnused();

Powered by Google App Engine
This is Rietveld 408576698