OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/mus/gles2/command_buffer_local.h" | 5 #include "components/mus/gles2/command_buffer_local.h" |
6 | 6 |
7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "components/mus/gles2/command_buffer_driver.h" | 12 #include "components/mus/gles2/command_buffer_driver.h" |
13 #include "components/mus/gles2/command_buffer_local_client.h" | 13 #include "components/mus/gles2/command_buffer_local_client.h" |
14 #include "components/mus/gles2/command_buffer_type_conversions.h" | 14 #include "components/mus/gles2/command_buffer_type_conversions.h" |
15 #include "components/mus/gles2/gpu_memory_tracker.h" | 15 #include "components/mus/gles2/gpu_memory_tracker.h" |
16 #include "components/mus/gles2/gpu_state.h" | 16 #include "components/mus/gles2/gpu_state.h" |
17 #include "components/mus/gles2/mojo_buffer_backing.h" | 17 #include "components/mus/gles2/mojo_buffer_backing.h" |
18 #include "components/mus/gles2/mojo_gpu_memory_buffer.h" | 18 #include "components/mus/gles2/mojo_gpu_memory_buffer.h" |
19 #include "gpu/command_buffer/client/gpu_control_client.h" | 19 #include "gpu/command_buffer/client/gpu_control_client.h" |
20 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" | 20 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
21 #include "gpu/command_buffer/common/sync_token.h" | 21 #include "gpu/command_buffer/common/sync_token.h" |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 client_->UpdateVSyncParameters(timebase, interval); | 578 client_->UpdateVSyncParameters(timebase, interval); |
579 } | 579 } |
580 | 580 |
581 void CommandBufferLocal::OnGpuCompletedSwapBuffersOnClientThread( | 581 void CommandBufferLocal::OnGpuCompletedSwapBuffersOnClientThread( |
582 gfx::SwapResult result) { | 582 gfx::SwapResult result) { |
583 if (client_) | 583 if (client_) |
584 client_->GpuCompletedSwapBuffers(result); | 584 client_->GpuCompletedSwapBuffers(result); |
585 } | 585 } |
586 | 586 |
587 } // namespace mus | 587 } // namespace mus |
OLD | NEW |