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/ipc/client/command_buffer_proxy_impl.h" | 5 #include "gpu/ipc/client/command_buffer_proxy_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/shared_memory.h" | 12 #include "base/memory/shared_memory.h" |
13 #include "base/optional.h" | 13 #include "base/optional.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/thread_task_runner_handle.h" | 15 #include "base/threading/thread_task_runner_handle.h" |
16 #include "base/trace_event/trace_event.h" | 16 #include "base/trace_event/trace_event.h" |
17 #include "gpu/command_buffer/client/gpu_control_client.h" | 17 #include "gpu/command_buffer/client/gpu_control_client.h" |
18 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" | 18 #include "gpu/command_buffer/client/gpu_memory_buffer_manager.h" |
19 #include "gpu/command_buffer/common/cmd_buffer_common.h" | 19 #include "gpu/command_buffer/common/cmd_buffer_common.h" |
20 #include "gpu/command_buffer/common/command_buffer_id.h" | 20 #include "gpu/command_buffer/common/command_buffer_id.h" |
21 #include "gpu/command_buffer/common/command_buffer_shared.h" | 21 #include "gpu/command_buffer/common/command_buffer_shared.h" |
22 #include "gpu/command_buffer/common/gpu_memory_allocation.h" | 22 #include "gpu/command_buffer/common/gpu_memory_allocation.h" |
23 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" | 23 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
24 #include "gpu/command_buffer/common/sync_token.h" | 24 #include "gpu/command_buffer/common/sync_token.h" |
25 #include "gpu/ipc/client/gpu_channel_host.h" | 25 #include "gpu/ipc/client/gpu_channel_host.h" |
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 // the client for lost context a single time. | 779 // the client for lost context a single time. |
780 if (!channel_) | 780 if (!channel_) |
781 return; | 781 return; |
782 channel_->DestroyCommandBuffer(this); | 782 channel_->DestroyCommandBuffer(this); |
783 channel_ = nullptr; | 783 channel_ = nullptr; |
784 if (gpu_control_client_) | 784 if (gpu_control_client_) |
785 gpu_control_client_->OnGpuControlLostContext(); | 785 gpu_control_client_->OnGpuControlLostContext(); |
786 } | 786 } |
787 | 787 |
788 } // namespace gpu | 788 } // namespace gpu |
OLD | NEW |