OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_driver.h" | 5 #include "components/mus/gles2/command_buffer_driver.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "components/mus/gles2/gl_surface_adapter.h" | 14 #include "components/mus/gles2/gl_surface_adapter.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 "gpu/command_buffer/common/gpu_memory_buffer_support.h" | 18 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
19 #include "gpu/command_buffer/service/command_buffer_service.h" | 19 #include "gpu/command_buffer/service/command_buffer_service.h" |
20 #include "gpu/command_buffer/service/command_executor.h" | 20 #include "gpu/command_buffer/service/command_executor.h" |
21 #include "gpu/command_buffer/service/context_group.h" | 21 #include "gpu/command_buffer/service/context_group.h" |
22 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 22 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 } | 542 } |
543 | 543 |
544 void CommandBufferDriver::OnGpuCompletedSwapBuffers(gfx::SwapResult result) { | 544 void CommandBufferDriver::OnGpuCompletedSwapBuffers(gfx::SwapResult result) { |
545 DCHECK(CalledOnValidThread()); | 545 DCHECK(CalledOnValidThread()); |
546 if (client_) { | 546 if (client_) { |
547 client_->OnGpuCompletedSwapBuffers(result); | 547 client_->OnGpuCompletedSwapBuffers(result); |
548 } | 548 } |
549 } | 549 } |
550 | 550 |
551 } // namespace mus | 551 } // namespace mus |
OLD | NEW |