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 "ppapi/proxy/ppapi_command_buffer_proxy.h" | 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" |
6 | 6 |
7 #include "base/numerics/safe_conversions.h" | 7 #include "base/numerics/safe_conversions.h" |
8 #include "ppapi/proxy/plugin_dispatcher.h" | 8 #include "ppapi/proxy/plugin_dispatcher.h" |
9 #include "ppapi/proxy/ppapi_messages.h" | 9 #include "ppapi/proxy/ppapi_messages.h" |
10 #include "ppapi/shared_impl/api_id.h" | 10 #include "ppapi/shared_impl/api_id.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 uint32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) { | 156 uint32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) { |
157 NOTREACHED(); | 157 NOTREACHED(); |
158 return 0; | 158 return 0; |
159 } | 159 } |
160 | 160 |
161 void PpapiCommandBufferProxy::SetLock(base::Lock*) { | 161 void PpapiCommandBufferProxy::SetLock(base::Lock*) { |
162 NOTIMPLEMENTED(); | 162 NOTIMPLEMENTED(); |
163 } | 163 } |
164 | 164 |
| 165 bool PpapiCommandBufferProxy::IsGpuChannelLost() { |
| 166 NOTIMPLEMENTED(); |
| 167 return false; |
| 168 } |
| 169 |
165 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { | 170 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { |
166 uint32 sync_point = 0; | 171 uint32 sync_point = 0; |
167 if (last_state_.error == gpu::error::kNoError) { | 172 if (last_state_.error == gpu::error::kNoError) { |
168 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( | 173 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( |
169 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); | 174 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); |
170 } | 175 } |
171 return sync_point; | 176 return sync_point; |
172 } | 177 } |
173 | 178 |
174 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() { | 179 uint32 PpapiCommandBufferProxy::InsertFutureSyncPoint() { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 shared_state()->Read(&last_state_); | 265 shared_state()->Read(&last_state_); |
261 } | 266 } |
262 | 267 |
263 gpu::CommandBufferSharedState* PpapiCommandBufferProxy::shared_state() const { | 268 gpu::CommandBufferSharedState* PpapiCommandBufferProxy::shared_state() const { |
264 return reinterpret_cast<gpu::CommandBufferSharedState*>( | 269 return reinterpret_cast<gpu::CommandBufferSharedState*>( |
265 shared_state_shm_->memory()); | 270 shared_state_shm_->memory()); |
266 } | 271 } |
267 | 272 |
268 } // namespace proxy | 273 } // namespace proxy |
269 } // namespace ppapi | 274 } // namespace ppapi |
OLD | NEW |