| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool PpapiCommandBufferProxy::DiscardBackbuffer() { | 53 bool PpapiCommandBufferProxy::DiscardBackbuffer() { |
| 54 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 bool PpapiCommandBufferProxy::EnsureBackbuffer() { | 58 bool PpapiCommandBufferProxy::EnsureBackbuffer() { |
| 59 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
| 60 return true; | 60 return true; |
| 61 } | 61 } |
| 62 | 62 |
| 63 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { |
| 64 NOTIMPLEMENTED(); |
| 65 return 0; |
| 66 } |
| 67 |
| 68 void PpapiCommandBufferProxy::WaitSyncPoint(uint32 sync_point) { |
| 69 NOTIMPLEMENTED(); |
| 70 } |
| 71 |
| 63 void PpapiCommandBufferProxy::SetMemoryAllocationChangedCallback( | 72 void PpapiCommandBufferProxy::SetMemoryAllocationChangedCallback( |
| 64 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& | 73 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& |
| 65 callback) { | 74 callback) { |
| 66 NOTIMPLEMENTED(); | 75 NOTIMPLEMENTED(); |
| 67 } | 76 } |
| 68 | 77 |
| 69 bool PpapiCommandBufferProxy::SetParent( | 78 bool PpapiCommandBufferProxy::SetParent( |
| 70 CommandBufferProxy* parent_command_buffer, | 79 CommandBufferProxy* parent_command_buffer, |
| 71 uint32 parent_texture_id) { | 80 uint32 parent_texture_id) { |
| 72 // TODO(fsamuel): Need a proper implementation of this to support offscreen | 81 // TODO(fsamuel): Need a proper implementation of this to support offscreen |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 last_state_ = state; | 279 last_state_ = state; |
| 271 } | 280 } |
| 272 } else { | 281 } else { |
| 273 last_state_.error = gpu::error::kLostContext; | 282 last_state_.error = gpu::error::kLostContext; |
| 274 ++last_state_.generation; | 283 ++last_state_.generation; |
| 275 } | 284 } |
| 276 } | 285 } |
| 277 | 286 |
| 278 } // namespace proxy | 287 } // namespace proxy |
| 279 } // namespace ppapi | 288 } // namespace ppapi |
| 280 | |
| OLD | NEW |