OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "gpu/command_buffer/client/mapped_memory.h" |
| 6 |
5 #include <algorithm> | 7 #include <algorithm> |
6 #include <functional> | 8 #include <functional> |
7 | 9 |
8 #include "../client/mapped_memory.h" | 10 #include "gpu/command_buffer/client/cmd_buffer_helper.h" |
9 #include "../client/cmd_buffer_helper.h" | |
10 | 11 |
11 namespace gpu { | 12 namespace gpu { |
12 | 13 |
13 MemoryChunk::MemoryChunk( | 14 MemoryChunk::MemoryChunk( |
14 int32 shm_id, gpu::Buffer shm, CommandBufferHelper* helper) | 15 int32 shm_id, gpu::Buffer shm, CommandBufferHelper* helper) |
15 : shm_id_(shm_id), | 16 : shm_id_(shm_id), |
16 shm_(shm), | 17 shm_(shm), |
17 allocator_(shm.size, helper, shm.ptr) { | 18 allocator_(shm.size, helper, shm.ptr) { |
18 } | 19 } |
19 | 20 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } else { | 102 } else { |
102 ++iter; | 103 ++iter; |
103 } | 104 } |
104 } | 105 } |
105 } | 106 } |
106 | 107 |
107 } // namespace gpu | 108 } // namespace gpu |
108 | 109 |
109 | 110 |
110 | 111 |
OLD | NEW |