| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 | 237 |
| 238 void PpapiCommandBufferProxy::SetSurfaceVisible(bool visible) { | 238 void PpapiCommandBufferProxy::SetSurfaceVisible(bool visible) { |
| 239 NOTREACHED(); | 239 NOTREACHED(); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void PpapiCommandBufferProxy::SendManagedMemoryStats( | 242 void PpapiCommandBufferProxy::SendManagedMemoryStats( |
| 243 const gpu::ManagedMemoryStats& stats) { | 243 const gpu::ManagedMemoryStats& stats) { |
| 244 NOTREACHED(); | 244 NOTREACHED(); |
| 245 } | 245 } |
| 246 | 246 |
| 247 gpu::Capabilities PpapiCommandBufferProxy::GetCapabilities() { | |
| 248 // TODO(boliu): Need to implement this to use cc in Pepper. Tracked in | |
| 249 // crbug.com/325391. | |
| 250 return gpu::Capabilities(); | |
| 251 } | |
| 252 | |
| 253 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( | 247 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( |
| 254 size_t width, | 248 size_t width, |
| 255 size_t height, | 249 size_t height, |
| 256 unsigned internalformat, | 250 unsigned internalformat, |
| 257 int32* id) { | 251 int32* id) { |
| 258 NOTREACHED(); | 252 NOTREACHED(); |
| 259 return NULL; | 253 return NULL; |
| 260 } | 254 } |
| 261 | 255 |
| 262 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) { | 256 void PpapiCommandBufferProxy::DestroyGpuMemoryBuffer(int32 id) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 283 last_state_ = state; | 277 last_state_ = state; |
| 284 } | 278 } |
| 285 } else { | 279 } else { |
| 286 last_state_.error = gpu::error::kLostContext; | 280 last_state_.error = gpu::error::kLostContext; |
| 287 ++last_state_.generation; | 281 ++last_state_.generation; |
| 288 } | 282 } |
| 289 } | 283 } |
| 290 | 284 |
| 291 } // namespace proxy | 285 } // namespace proxy |
| 292 } // namespace ppapi | 286 } // namespace ppapi |
| OLD | NEW |