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

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

Issue 11195011: Send vsync timebase updates to the browser compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Send vsync timebase updates to the browser compositor Created 8 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698