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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 NOTIMPLEMENTED(); | 69 NOTIMPLEMENTED(); |
70 } | 70 } |
71 | 71 |
72 bool PpapiCommandBufferProxy::SignalSyncPoint(uint32 sync_point, | 72 bool PpapiCommandBufferProxy::SignalSyncPoint(uint32 sync_point, |
73 const base::Closure& callback) { | 73 const base::Closure& callback) { |
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( |
80 callback) { | 80 const content::GpuMemoryAllocationForRenderer&)>& callback) { |
81 NOTIMPLEMENTED(); | 81 NOTIMPLEMENTED(); |
82 } | 82 } |
83 | 83 |
84 bool PpapiCommandBufferProxy::SetParent( | 84 bool PpapiCommandBufferProxy::SetParent( |
85 CommandBufferProxy* parent_command_buffer, | 85 CommandBufferProxy* parent_command_buffer, |
86 uint32 parent_texture_id) { | 86 uint32 parent_texture_id) { |
87 // TODO(fsamuel): Need a proper implementation of this to support offscreen | 87 // TODO(fsamuel): Need a proper implementation of this to support offscreen |
88 // contexts in the guest renderer (WebGL, canvas, etc). | 88 // contexts in the guest renderer (WebGL, canvas, etc). |
89 NOTIMPLEMENTED(); | 89 NOTIMPLEMENTED(); |
90 return false; | 90 return false; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 last_state_ = state; | 289 last_state_ = state; |
290 } | 290 } |
291 } else { | 291 } else { |
292 last_state_.error = gpu::error::kLostContext; | 292 last_state_.error = gpu::error::kLostContext; |
293 ++last_state_.generation; | 293 ++last_state_.generation; |
294 } | 294 } |
295 } | 295 } |
296 | 296 |
297 } // namespace proxy | 297 } // namespace proxy |
298 } // namespace ppapi | 298 } // namespace ppapi |
OLD | NEW |