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/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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 } | 163 } |
164 | 164 |
165 void PpapiCommandBufferProxy::DestroyTransferBuffer(int32 id) { | 165 void PpapiCommandBufferProxy::DestroyTransferBuffer(int32 id) { |
166 if (last_state_.error != gpu::error::kNoError) | 166 if (last_state_.error != gpu::error::kNoError) |
167 return; | 167 return; |
168 | 168 |
169 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer( | 169 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer( |
170 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); | 170 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); |
171 } | 171 } |
172 | 172 |
173 uint32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) { | |
174 NOTREACHED(); | |
175 return 0; | |
176 } | |
177 | |
178 void PpapiCommandBufferProxy::SetLock(base::Lock*) { | 173 void PpapiCommandBufferProxy::SetLock(base::Lock*) { |
179 NOTIMPLEMENTED(); | 174 NOTIMPLEMENTED(); |
180 } | 175 } |
181 | 176 |
182 bool PpapiCommandBufferProxy::IsGpuChannelLost() { | 177 bool PpapiCommandBufferProxy::IsGpuChannelLost() { |
183 NOTIMPLEMENTED(); | 178 NOTIMPLEMENTED(); |
184 return false; | 179 return false; |
185 } | 180 } |
186 | 181 |
187 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const { | 182 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const { |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 message->set_unblock(true); | 332 message->set_unblock(true); |
338 Send(message); | 333 Send(message); |
339 | 334 |
340 flush_info_->flush_pending = false; | 335 flush_info_->flush_pending = false; |
341 flush_info_->resource.SetHostResource(0, 0); | 336 flush_info_->resource.SetHostResource(0, 0); |
342 flushed_fence_sync_release_ = pending_fence_sync_release_; | 337 flushed_fence_sync_release_ = pending_fence_sync_release_; |
343 } | 338 } |
344 | 339 |
345 } // namespace proxy | 340 } // namespace proxy |
346 } // namespace ppapi | 341 } // namespace ppapi |
OLD | NEW |