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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 NOTIMPLEMENTED(); | 74 NOTIMPLEMENTED(); |
75 return false; | 75 return false; |
76 } | 76 } |
77 | 77 |
78 void PpapiCommandBufferProxy::SetMemoryAllocationChangedCallback( | 78 void PpapiCommandBufferProxy::SetMemoryAllocationChangedCallback( |
79 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& | 79 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& |
80 callback) { | 80 callback) { |
81 NOTIMPLEMENTED(); | 81 NOTIMPLEMENTED(); |
82 } | 82 } |
83 | 83 |
| 84 void PpapiCommandBufferProxy::SetUpdateVSyncTimeCallback( |
| 85 const base::Callback<void(int64)>& callback) { |
| 86 NOTIMPLEMENTED(); |
| 87 } |
| 88 |
84 bool PpapiCommandBufferProxy::SetParent( | 89 bool PpapiCommandBufferProxy::SetParent( |
85 CommandBufferProxy* parent_command_buffer, | 90 CommandBufferProxy* parent_command_buffer, |
86 uint32 parent_texture_id) { | 91 uint32 parent_texture_id) { |
87 // TODO(fsamuel): Need a proper implementation of this to support offscreen | 92 // TODO(fsamuel): Need a proper implementation of this to support offscreen |
88 // contexts in the guest renderer (WebGL, canvas, etc). | 93 // contexts in the guest renderer (WebGL, canvas, etc). |
89 NOTIMPLEMENTED(); | 94 NOTIMPLEMENTED(); |
90 return false; | 95 return false; |
91 } | 96 } |
92 | 97 |
93 void PpapiCommandBufferProxy::SetChannelErrorCallback( | 98 void PpapiCommandBufferProxy::SetChannelErrorCallback( |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 last_state_ = state; | 294 last_state_ = state; |
290 } | 295 } |
291 } else { | 296 } else { |
292 last_state_.error = gpu::error::kLostContext; | 297 last_state_.error = gpu::error::kLostContext; |
293 ++last_state_.generation; | 298 ++last_state_.generation; |
294 } | 299 } |
295 } | 300 } |
296 | 301 |
297 } // namespace proxy | 302 } // namespace proxy |
298 } // namespace ppapi | 303 } // namespace ppapi |
OLD | NEW |