| 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/ppapi_messages.h" | 8 #include "ppapi/proxy/ppapi_messages.h" |
| 9 #include "ppapi/proxy/proxy_channel.h" | 9 #include "ppapi/proxy/proxy_channel.h" |
| 10 #include "ppapi/shared_impl/api_id.h" | 10 #include "ppapi/shared_impl/api_id.h" |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 } | 198 } |
| 199 | 199 |
| 200 void PpapiCommandBufferProxy::SetSurfaceVisible(bool visible) { | 200 void PpapiCommandBufferProxy::SetSurfaceVisible(bool visible) { |
| 201 NOTREACHED(); | 201 NOTREACHED(); |
| 202 } | 202 } |
| 203 | 203 |
| 204 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { | 204 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { |
| 205 return capabilities_; | 205 return capabilities_; |
| 206 } | 206 } |
| 207 | 207 |
| 208 int32 PpapiCommandBufferProxy::CreateImage(ClientBuffer buffer, | 208 int32 PpapiCommandBufferProxy::CreateImage(const ClientBuffer* const buffers, |
| 209 size_t width, | 209 size_t width, |
| 210 size_t height, | 210 size_t height, |
| 211 unsigned internalformat) { | 211 unsigned internalformat) { |
| 212 NOTREACHED(); | 212 NOTREACHED(); |
| 213 return -1; | 213 return -1; |
| 214 } | 214 } |
| 215 | 215 |
| 216 void PpapiCommandBufferProxy::DestroyImage(int32 id) { | 216 void PpapiCommandBufferProxy::DestroyImage(int32 id) { |
| 217 NOTREACHED(); | 217 NOTREACHED(); |
| 218 } | 218 } |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 shared_state()->Read(&last_state_); | 256 shared_state()->Read(&last_state_); |
| 257 } | 257 } |
| 258 | 258 |
| 259 gpu::CommandBufferSharedState* PpapiCommandBufferProxy::shared_state() const { | 259 gpu::CommandBufferSharedState* PpapiCommandBufferProxy::shared_state() const { |
| 260 return reinterpret_cast<gpu::CommandBufferSharedState*>( | 260 return reinterpret_cast<gpu::CommandBufferSharedState*>( |
| 261 shared_state_shm_->memory()); | 261 shared_state_shm_->memory()); |
| 262 } | 262 } |
| 263 | 263 |
| 264 } // namespace proxy | 264 } // namespace proxy |
| 265 } // namespace ppapi | 265 } // namespace ppapi |
| OLD | NEW |