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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 if (decoder_) | 1091 if (decoder_) |
1092 decoder_->LoseContext(GL_UNKNOWN_CONTEXT_RESET_ARB); | 1092 decoder_->LoseContext(GL_UNKNOWN_CONTEXT_RESET_ARB); |
1093 command_buffer_->SetParseError(gpu::error::kLostContext); | 1093 command_buffer_->SetParseError(gpu::error::kLostContext); |
1094 } | 1094 } |
1095 | 1095 |
1096 uint64 GpuCommandBufferStub::GetMemoryUsage() const { | 1096 uint64 GpuCommandBufferStub::GetMemoryUsage() const { |
1097 return GetMemoryManager()->GetClientMemoryUsage(this); | 1097 return GetMemoryManager()->GetClientMemoryUsage(this); |
1098 } | 1098 } |
1099 | 1099 |
1100 void GpuCommandBufferStub::SendSwapBuffersCompleted( | 1100 void GpuCommandBufferStub::SendSwapBuffersCompleted( |
1101 const std::vector<ui::LatencyInfo>& latency_info) { | 1101 const std::vector<ui::LatencyInfo>& latency_info, |
1102 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info)); | 1102 gfx::SwapResult result) { |
| 1103 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info, |
| 1104 result)); |
1103 } | 1105 } |
1104 | 1106 |
1105 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, | 1107 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, |
1106 base::TimeDelta interval) { | 1108 base::TimeDelta interval) { |
1107 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, | 1109 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, |
1108 interval)); | 1110 interval)); |
1109 } | 1111 } |
1110 | 1112 |
1111 } // namespace content | 1113 } // namespace content |
OLD | NEW |