OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/query_tracker.h" | 5 #include "gpu/command_buffer/client/query_tracker.h" |
6 | 6 |
7 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
8 #include <GLES2/gl2ext.h> | 8 #include <GLES2/gl2ext.h> |
9 #include <GLES2/gl2extchromium.h> | 9 #include <GLES2/gl2extchromium.h> |
10 | 10 |
11 #include "gpu/command_buffer/client/atomicops.h" | |
12 #include "gpu/command_buffer/client/gles2_cmd_helper.h" | 11 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
13 #include "gpu/command_buffer/client/gles2_implementation.h" | 12 #include "gpu/command_buffer/client/gles2_implementation.h" |
14 #include "gpu/command_buffer/client/mapped_memory.h" | 13 #include "gpu/command_buffer/client/mapped_memory.h" |
15 #include "gpu/command_buffer/common/time.h" | 14 #include "gpu/command_buffer/common/time.h" |
16 | 15 |
17 namespace gpu { | 16 namespace gpu { |
18 namespace gles2 { | 17 namespace gles2 { |
19 | 18 |
20 QuerySyncManager::QuerySyncManager(MappedMemoryManager* manager) | 19 QuerySyncManager::QuerySyncManager(MappedMemoryManager* manager) |
21 : mapped_memory_(manager) { | 20 : mapped_memory_(manager) { |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 } | 255 } |
257 | 256 |
258 query_sync_manager_.Free(query->info_); | 257 query_sync_manager_.Free(query->info_); |
259 it = removed_queries_.erase(it); | 258 it = removed_queries_.erase(it); |
260 delete query; | 259 delete query; |
261 } | 260 } |
262 } | 261 } |
263 | 262 |
264 } // namespace gles2 | 263 } // namespace gles2 |
265 } // namespace gpu | 264 } // namespace gpu |
OLD | NEW |