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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 } | 138 } |
139 | 139 |
140 void PpapiCommandBufferProxy::DestroyTransferBuffer(int32 id) { | 140 void PpapiCommandBufferProxy::DestroyTransferBuffer(int32 id) { |
141 if (last_state_.error != gpu::error::kNoError) | 141 if (last_state_.error != gpu::error::kNoError) |
142 return; | 142 return; |
143 | 143 |
144 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer( | 144 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer( |
145 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); | 145 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); |
146 } | 146 } |
147 | 147 |
148 void PpapiCommandBufferProxy::Echo(const base::Closure& callback) { | |
149 NOTREACHED(); | |
150 } | |
151 | |
152 uint32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) { | 148 uint32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) { |
153 NOTREACHED(); | 149 NOTREACHED(); |
154 return 0; | 150 return 0; |
155 } | 151 } |
156 | 152 |
157 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { | 153 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { |
158 uint32 sync_point = 0; | 154 uint32 sync_point = 0; |
159 if (last_state_.error == gpu::error::kNoError) { | 155 if (last_state_.error == gpu::error::kNoError) { |
160 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( | 156 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( |
161 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); | 157 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 shared_state()->Read(&last_state_); | 239 shared_state()->Read(&last_state_); |
244 } | 240 } |
245 | 241 |
246 gpu::CommandBufferSharedState* PpapiCommandBufferProxy::shared_state() const { | 242 gpu::CommandBufferSharedState* PpapiCommandBufferProxy::shared_state() const { |
247 return reinterpret_cast<gpu::CommandBufferSharedState*>( | 243 return reinterpret_cast<gpu::CommandBufferSharedState*>( |
248 shared_state_shm_->memory()); | 244 shared_state_shm_->memory()); |
249 } | 245 } |
250 | 246 |
251 } // namespace proxy | 247 } // namespace proxy |
252 } // namespace ppapi | 248 } // namespace ppapi |
OLD | NEW |