Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 24925002: Move Insert/SignalSyncPoint() to GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { 198 uint32 PpapiCommandBufferProxy::InsertSyncPoint() {
199 uint32 sync_point = 0; 199 uint32 sync_point = 0;
200 if (last_state_.error == gpu::error::kNoError) { 200 if (last_state_.error == gpu::error::kNoError) {
201 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint( 201 Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint(
202 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point)); 202 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point));
203 } 203 }
204 return sync_point; 204 return sync_point;
205 } 205 }
206 206
207 void PpapiCommandBufferProxy::SignalSyncPoint(uint32 sync_point,
208 const base::Closure& callback) {
209 NOTREACHED();
210 }
211
207 bool PpapiCommandBufferProxy::SupportsGpuMemoryBuffer() { 212 bool PpapiCommandBufferProxy::SupportsGpuMemoryBuffer() {
208 return false; 213 return false;
209 } 214 }
210 215
211 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer( 216 gfx::GpuMemoryBuffer* PpapiCommandBufferProxy::CreateGpuMemoryBuffer(
212 size_t width, 217 size_t width,
213 size_t height, 218 size_t height,
214 unsigned internalformat, 219 unsigned internalformat,
215 int32* id) { 220 int32* id) {
216 NOTREACHED(); 221 NOTREACHED();
(...skipping 24 matching lines...) Expand all
241 last_state_ = state; 246 last_state_ = state;
242 } 247 }
243 } else { 248 } else {
244 last_state_.error = gpu::error::kLostContext; 249 last_state_.error = gpu::error::kLostContext;
245 ++last_state_.generation; 250 ++last_state_.generation;
246 } 251 }
247 } 252 }
248 253
249 } // namespace proxy 254 } // namespace proxy
250 } // namespace ppapi 255 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698