| 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/service/gpu_command_buffer_stub.h" | 5 #include "gpu/ipc/service/gpu_command_buffer_stub.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/hash.h" | 11 #include "base/hash.h" |
| 12 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/memory_pressure_listener.h" | 14 #include "base/memory/memory_pressure_listener.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
| 17 #include "base/metrics/histogram_macros.h" | 17 #include "base/metrics/histogram_macros.h" |
| 18 #include "base/single_thread_task_runner.h" |
| 18 #include "base/time/time.h" | 19 #include "base/time/time.h" |
| 19 #include "base/trace_event/trace_event.h" | 20 #include "base/trace_event/trace_event.h" |
| 20 #include "build/build_config.h" | 21 #include "build/build_config.h" |
| 21 #include "gpu/command_buffer/common/constants.h" | 22 #include "gpu/command_buffer/common/constants.h" |
| 22 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" | 23 #include "gpu/command_buffer/common/gpu_memory_buffer_support.h" |
| 23 #include "gpu/command_buffer/common/mailbox.h" | 24 #include "gpu/command_buffer/common/mailbox.h" |
| 24 #include "gpu/command_buffer/common/sync_token.h" | 25 #include "gpu/command_buffer/common/sync_token.h" |
| 25 #include "gpu/command_buffer/service/command_executor.h" | 26 #include "gpu/command_buffer/service/command_executor.h" |
| 26 #include "gpu/command_buffer/service/gl_context_virtual.h" | 27 #include "gpu/command_buffer/service/gl_context_virtual.h" |
| 27 #include "gpu/command_buffer/service/gl_state_restorer_impl.h" | 28 #include "gpu/command_buffer/service/gl_state_restorer_impl.h" |
| (...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1257 command_buffer_->GetLastState().error == error::kLostContext) | 1258 command_buffer_->GetLastState().error == error::kLostContext) |
| 1258 return; | 1259 return; |
| 1259 | 1260 |
| 1260 command_buffer_->SetContextLostReason(error::kUnknown); | 1261 command_buffer_->SetContextLostReason(error::kUnknown); |
| 1261 if (decoder_) | 1262 if (decoder_) |
| 1262 decoder_->MarkContextLost(error::kUnknown); | 1263 decoder_->MarkContextLost(error::kUnknown); |
| 1263 command_buffer_->SetParseError(error::kLostContext); | 1264 command_buffer_->SetParseError(error::kLostContext); |
| 1264 } | 1265 } |
| 1265 | 1266 |
| 1266 } // namespace gpu | 1267 } // namespace gpu |
| OLD | NEW |