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" |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 wait_for_get_offset_->reply.get(), state); | 924 wait_for_get_offset_->reply.get(), state); |
925 Send(wait_for_get_offset_->reply.release()); | 925 Send(wait_for_get_offset_->reply.release()); |
926 wait_for_get_offset_.reset(); | 926 wait_for_get_offset_.reset(); |
927 } | 927 } |
928 } | 928 } |
929 } | 929 } |
930 | 930 |
931 void GpuCommandBufferStub::OnAsyncFlush( | 931 void GpuCommandBufferStub::OnAsyncFlush( |
932 int32_t put_offset, | 932 int32_t put_offset, |
933 uint32_t flush_count, | 933 uint32_t flush_count, |
934 const std::vector<ui::LatencyInfo>& latency_info) { | 934 const std::vector<ui::LatencyInfo>& latency_info, |
| 935 const std::vector<SyncToken>& sync_token_dependencies) { |
935 TRACE_EVENT1( | 936 TRACE_EVENT1( |
936 "gpu", "GpuCommandBufferStub::OnAsyncFlush", "put_offset", put_offset); | 937 "gpu", "GpuCommandBufferStub::OnAsyncFlush", "put_offset", put_offset); |
937 DCHECK(command_buffer_); | 938 DCHECK(command_buffer_); |
938 | 939 |
939 // We received this message out-of-order. This should not happen but is here | 940 // We received this message out-of-order. This should not happen but is here |
940 // to catch regressions. Ignore the message. | 941 // to catch regressions. Ignore the message. |
941 DVLOG_IF(0, flush_count - last_flush_count_ >= 0x8000000U) | 942 DVLOG_IF(0, flush_count - last_flush_count_ >= 0x8000000U) |
942 << "Received a Flush message out-of-order"; | 943 << "Received a Flush message out-of-order"; |
943 | 944 |
944 if (flush_count > last_flush_count_ && | 945 if (flush_count > last_flush_count_ && |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 command_buffer_->GetLastState().error == error::kLostContext) | 1270 command_buffer_->GetLastState().error == error::kLostContext) |
1270 return; | 1271 return; |
1271 | 1272 |
1272 command_buffer_->SetContextLostReason(error::kUnknown); | 1273 command_buffer_->SetContextLostReason(error::kUnknown); |
1273 if (decoder_) | 1274 if (decoder_) |
1274 decoder_->MarkContextLost(error::kUnknown); | 1275 decoder_->MarkContextLost(error::kUnknown); |
1275 command_buffer_->SetParseError(error::kLostContext); | 1276 command_buffer_->SetParseError(error::kLostContext); |
1276 } | 1277 } |
1277 | 1278 |
1278 } // namespace gpu | 1279 } // namespace gpu |
OLD | NEW |