| 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 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 command_buffer_->GetLastState().error == error::kLostContext) | 1132 command_buffer_->GetLastState().error == error::kLostContext) |
| 1133 return; | 1133 return; |
| 1134 | 1134 |
| 1135 command_buffer_->SetContextLostReason(error::kUnknown); | 1135 command_buffer_->SetContextLostReason(error::kUnknown); |
| 1136 if (decoder_) | 1136 if (decoder_) |
| 1137 decoder_->MarkContextLost(error::kUnknown); | 1137 decoder_->MarkContextLost(error::kUnknown); |
| 1138 command_buffer_->SetParseError(error::kLostContext); | 1138 command_buffer_->SetParseError(error::kLostContext); |
| 1139 } | 1139 } |
| 1140 | 1140 |
| 1141 void GpuCommandBufferStub::SendSwapBuffersCompleted( | 1141 void GpuCommandBufferStub::SendSwapBuffersCompleted( |
| 1142 const std::vector<ui::LatencyInfo>& latency_info, | 1142 const GpuCommandBufferMsg_SwapBuffersCompleted_Params& params) { |
| 1143 gfx::SwapResult result) { | 1143 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params)); |
| 1144 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info, | |
| 1145 result)); | |
| 1146 } | 1144 } |
| 1147 | 1145 |
| 1148 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, | 1146 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, |
| 1149 base::TimeDelta interval) { | 1147 base::TimeDelta interval) { |
| 1150 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, | 1148 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, |
| 1151 interval)); | 1149 interval)); |
| 1152 } | 1150 } |
| 1153 | 1151 |
| 1154 } // namespace gpu | 1152 } // namespace gpu |
| OLD | NEW |