| 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 "ppapi/proxy/ppapi_messages.h" | 7 #include "ppapi/proxy/ppapi_messages.h" |
| 8 #include "ppapi/proxy/proxy_channel.h" | 8 #include "ppapi/proxy/proxy_channel.h" |
| 9 #include "ppapi/shared_impl/api_id.h" | 9 #include "ppapi/shared_impl/api_id.h" |
| 10 #include "ppapi/shared_impl/host_resource.h" | 10 #include "ppapi/shared_impl/host_resource.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { | 197 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { |
| 198 uint32 sync_point = 0; | 198 uint32 sync_point = 0; |
| 199 if (last_state_.error == gpu::error::kNoError) { | 199 if (last_state_.error == gpu::error::kNoError) { |
| 200 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( | 200 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( |
| 201 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); | 201 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); |
| 202 } | 202 } |
| 203 return sync_point; | 203 return sync_point; |
| 204 } | 204 } |
| 205 | 205 |
| 206 void PpapiCommandBufferProxy::SignalSyncPoint(uint32 sync_point, |
| 207 const base::Closure& callback) { |
| 208 NOTREACHED(); |
| 209 } |
| 210 |
| 206 bool PpapiCommandBufferProxy::SupportsGpuMemoryBuffer() { | 211 bool PpapiCommandBufferProxy::SupportsGpuMemoryBuffer() { |
| 207 return false; | 212 return false; |
| 208 } | 213 } |
| 209 | 214 |
| 210 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( | 215 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( |
| 211 size_t width, | 216 size_t width, |
| 212 size_t height, | 217 size_t height, |
| 213 unsigned internalformat, | 218 unsigned internalformat, |
| 214 int32* id) { | 219 int32* id) { |
| 215 NOTREACHED(); | 220 NOTREACHED(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 last_state_ = state; | 254 last_state_ = state; |
| 250 } | 255 } |
| 251 } else { | 256 } else { |
| 252 last_state_.error = gpu::error::kLostContext; | 257 last_state_.error = gpu::error::kLostContext; |
| 253 ++last_state_.generation; | 258 ++last_state_.generation; |
| 254 } | 259 } |
| 255 } | 260 } |
| 256 | 261 |
| 257 } // namespace proxy | 262 } // namespace proxy |
| 258 } // namespace ppapi | 263 } // namespace ppapi |
| OLD | NEW |