OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "cc/raster/staging_buffer_pool.h" | 5 #include "cc/raster/staging_buffer_pool.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "base/trace_event/memory_dump_manager.h" | 12 #include "base/trace_event/memory_dump_manager.h" |
13 #include "cc/base/container_util.h" | 13 #include "cc/base/container_util.h" |
14 #include "cc/debug/traced_value.h" | 14 #include "cc/debug/traced_value.h" |
15 #include "cc/resources/scoped_resource.h" | 15 #include "cc/resources/scoped_resource.h" |
16 #include "gpu/command_buffer/client/gles2_interface.h" | 16 #include "gpu/command_buffer/client/gles2_interface.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Delay between checking for query result to be available. | 21 // Delay between checking for query result to be available. |
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 return; | 419 return; |
420 | 420 |
421 busy_buffers_.front()->DestroyGLResources(gl); | 421 busy_buffers_.front()->DestroyGLResources(gl); |
422 RemoveStagingBuffer(busy_buffers_.front().get()); | 422 RemoveStagingBuffer(busy_buffers_.front().get()); |
423 busy_buffers_.pop_front(); | 423 busy_buffers_.pop_front(); |
424 } | 424 } |
425 } | 425 } |
426 } | 426 } |
427 | 427 |
428 } // namespace cc | 428 } // namespace cc |
OLD | NEW |