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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/bind_helpers.h" | 6 #include "base/bind_helpers.h" |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/hash.h" | 8 #include "base/hash.h" |
9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 if (decoder_) | 1100 if (decoder_) |
1101 decoder_->MarkContextLost(gpu::error::kUnknown); | 1101 decoder_->MarkContextLost(gpu::error::kUnknown); |
1102 command_buffer_->SetParseError(gpu::error::kLostContext); | 1102 command_buffer_->SetParseError(gpu::error::kLostContext); |
1103 } | 1103 } |
1104 | 1104 |
1105 uint64 GpuCommandBufferStub::GetMemoryUsage() const { | 1105 uint64 GpuCommandBufferStub::GetMemoryUsage() const { |
1106 return GetMemoryManager()->GetClientMemoryUsage(this); | 1106 return GetMemoryManager()->GetClientMemoryUsage(this); |
1107 } | 1107 } |
1108 | 1108 |
1109 void GpuCommandBufferStub::SendSwapBuffersCompleted( | 1109 void GpuCommandBufferStub::SendSwapBuffersCompleted( |
1110 const std::vector<ui::LatencyInfo>& latency_info) { | 1110 const std::vector<ui::LatencyInfo>& latency_info, |
1111 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info)); | 1111 gfx::SwapResult result) { |
| 1112 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info, |
| 1113 result)); |
1112 } | 1114 } |
1113 | 1115 |
1114 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, | 1116 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, |
1115 base::TimeDelta interval) { | 1117 base::TimeDelta interval) { |
1116 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, | 1118 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, |
1117 interval)); | 1119 interval)); |
1118 } | 1120 } |
1119 | 1121 |
1120 } // namespace content | 1122 } // namespace content |
OLD | NEW |