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

Side by Side Diff: gpu/command_buffer/client/fenced_allocator.h

Issue 519020: Moved logging for NaCl environment from gpu/command_buffer/common/logging.h t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the definition of the FencedAllocator class. 5 // This file contains the definition of the FencedAllocator class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ 7 #ifndef GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_
8 #define GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ 8 #define GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_
9 9
10 #include <vector> 10 #include <vector>
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "gpu/command_buffer/common/logging.h" 12 #include "base/logging.h"
13 13
14 namespace gpu { 14 namespace gpu {
15 class CommandBufferHelper; 15 class CommandBufferHelper;
16 16
17 // FencedAllocator provides a mechanism to manage allocations within a fixed 17 // FencedAllocator provides a mechanism to manage allocations within a fixed
18 // block of memory (storing the book-keeping externally). Furthermore this 18 // block of memory (storing the book-keeping externally). Furthermore this
19 // class allows to free data "pending" the passage of a command buffer token, 19 // class allows to free data "pending" the passage of a command buffer token,
20 // that is, the memory won't be reused until the command buffer has processed 20 // that is, the memory won't be reused until the command buffer has processed
21 // that token. 21 // that token.
22 // 22 //
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 private: 230 private:
231 FencedAllocator allocator_; 231 FencedAllocator allocator_;
232 void *base_; 232 void *base_;
233 DISALLOW_IMPLICIT_CONSTRUCTORS(FencedAllocatorWrapper); 233 DISALLOW_IMPLICIT_CONSTRUCTORS(FencedAllocatorWrapper);
234 }; 234 };
235 235
236 } // namespace gpu 236 } // namespace gpu
237 237
238 #endif // GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_ 238 #endif // GPU_COMMAND_BUFFER_CLIENT_FENCED_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper.h ('k') | gpu/command_buffer/common/cmd_buffer_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698