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" |
| 6 |
5 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
6 #include <GLES2/gl2ext.h> | 8 #include <GLES2/gl2ext.h> |
7 #include <GLES2/gl2extchromium.h> | 9 #include <GLES2/gl2extchromium.h> |
8 | 10 |
9 #include "../client/query_tracker.h" | 11 #include "gpu/command_buffer/client/atomicops.h" |
10 | 12 #include "gpu/command_buffer/client/gles2_cmd_helper.h" |
11 #include "../client/atomicops.h" | 13 #include "gpu/command_buffer/client/gles2_implementation.h" |
12 #include "../client/gles2_cmd_helper.h" | 14 #include "gpu/command_buffer/client/mapped_memory.h" |
13 #include "../client/gles2_implementation.h" | 15 #include "gpu/command_buffer/common/time.h" |
14 #include "../client/mapped_memory.h" | |
15 #include "../common/time.h" | |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 namespace gles2 { | 18 namespace gles2 { |
19 | 19 |
20 QuerySyncManager::QuerySyncManager(MappedMemoryManager* manager) | 20 QuerySyncManager::QuerySyncManager(MappedMemoryManager* manager) |
21 : mapped_memory_(manager) { | 21 : mapped_memory_(manager) { |
22 GPU_DCHECK(manager); | 22 GPU_DCHECK(manager); |
23 } | 23 } |
24 | 24 |
25 QuerySyncManager::~QuerySyncManager() { | 25 QuerySyncManager::~QuerySyncManager() { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 delete query; | 232 delete query; |
233 } | 233 } |
234 } | 234 } |
235 | 235 |
236 void QueryTracker::Shrink() { | 236 void QueryTracker::Shrink() { |
237 query_sync_manager_.Shrink(); | 237 query_sync_manager_.Shrink(); |
238 } | 238 } |
239 | 239 |
240 } // namespace gles2 | 240 } // namespace gles2 |
241 } // namespace gpu | 241 } // namespace gpu |
OLD | NEW |