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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 wait_for_get_offset_->reply.get(), state); | 928 wait_for_get_offset_->reply.get(), state); |
929 Send(wait_for_get_offset_->reply.release()); | 929 Send(wait_for_get_offset_->reply.release()); |
930 wait_for_get_offset_.reset(); | 930 wait_for_get_offset_.reset(); |
931 } | 931 } |
932 } | 932 } |
933 } | 933 } |
934 | 934 |
935 void GpuCommandBufferStub::OnAsyncFlush( | 935 void GpuCommandBufferStub::OnAsyncFlush( |
936 int32_t put_offset, | 936 int32_t put_offset, |
937 uint32_t flush_count, | 937 uint32_t flush_count, |
938 const std::vector<ui::LatencyInfo>& latency_info) { | 938 const std::vector<ui::LatencyInfo>& latency_info, |
| 939 const std::vector<SyncToken>& sync_token_fences) { |
939 TRACE_EVENT1( | 940 TRACE_EVENT1( |
940 "gpu", "GpuCommandBufferStub::OnAsyncFlush", "put_offset", put_offset); | 941 "gpu", "GpuCommandBufferStub::OnAsyncFlush", "put_offset", put_offset); |
941 DCHECK(command_buffer_); | 942 DCHECK(command_buffer_); |
942 | 943 |
943 // We received this message out-of-order. This should not happen but is here | 944 // We received this message out-of-order. This should not happen but is here |
944 // to catch regressions. Ignore the message. | 945 // to catch regressions. Ignore the message. |
945 DVLOG_IF(0, flush_count - last_flush_count_ >= 0x8000000U) | 946 DVLOG_IF(0, flush_count - last_flush_count_ >= 0x8000000U) |
946 << "Received a Flush message out-of-order"; | 947 << "Received a Flush message out-of-order"; |
947 | 948 |
948 if (flush_count > last_flush_count_ && | 949 if (flush_count > last_flush_count_ && |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 command_buffer_->GetLastState().error == error::kLostContext) | 1228 command_buffer_->GetLastState().error == error::kLostContext) |
1228 return; | 1229 return; |
1229 | 1230 |
1230 command_buffer_->SetContextLostReason(error::kUnknown); | 1231 command_buffer_->SetContextLostReason(error::kUnknown); |
1231 if (decoder_) | 1232 if (decoder_) |
1232 decoder_->MarkContextLost(error::kUnknown); | 1233 decoder_->MarkContextLost(error::kUnknown); |
1233 command_buffer_->SetParseError(error::kLostContext); | 1234 command_buffer_->SetParseError(error::kLostContext); |
1234 } | 1235 } |
1235 | 1236 |
1236 } // namespace gpu | 1237 } // namespace gpu |
OLD | NEW |