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

Unified Diff: trunk/src/gpu/command_buffer/client/fenced_allocator.h

Issue 216673006: Revert 260177 "By keeping track of transfer buffer usage (both s..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/gpu/command_buffer/client/fenced_allocator.h
===================================================================
--- trunk/src/gpu/command_buffer/client/fenced_allocator.h (revision 260192)
+++ trunk/src/gpu/command_buffer/client/fenced_allocator.h (working copy)
@@ -9,7 +9,6 @@
#include <vector>
-#include "base/bind.h"
#include "base/logging.h"
#include "gpu/command_buffer/common/types.h"
#include "gpu/gpu_export.h"
@@ -36,8 +35,7 @@
// Creates a FencedAllocator. Note that the size of the buffer is passed, but
// not its base address: everything is handled as offsets into the buffer.
FencedAllocator(unsigned int size,
- CommandBufferHelper *helper,
- const base::Closure& poll_callback);
+ CommandBufferHelper *helper);
~FencedAllocator();
@@ -138,7 +136,6 @@
Offset AllocInBlock(BlockIndex index, unsigned int size);
CommandBufferHelper *helper_;
- base::Closure poll_callback_;
Container blocks_;
size_t bytes_in_use_;
@@ -151,9 +148,8 @@
public:
FencedAllocatorWrapper(unsigned int size,
CommandBufferHelper* helper,
- const base::Closure& poll_callback,
void* base)
- : allocator_(size, helper, poll_callback),
+ : allocator_(size, helper),
base_(base) { }
// Allocates a block of memory. If the buffer is out of directly available
« no previous file with comments | « trunk/src/gpu/command_buffer/client/cmd_buffer_helper.h ('k') | trunk/src/gpu/command_buffer/client/fenced_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698