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

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

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 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 5 #ifndef PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 6 #define PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "gpu/command_buffer/common/command_buffer.h" 10 #include "gpu/command_buffer/common/command_buffer.h"
(...skipping 24 matching lines...) Expand all
35 virtual bool SetSurfaceVisible(bool visible) OVERRIDE; 35 virtual bool SetSurfaceVisible(bool visible) OVERRIDE;
36 virtual bool DiscardBackbuffer() OVERRIDE; 36 virtual bool DiscardBackbuffer() OVERRIDE;
37 virtual bool EnsureBackbuffer() OVERRIDE; 37 virtual bool EnsureBackbuffer() OVERRIDE;
38 virtual uint32 InsertSyncPoint() OVERRIDE; 38 virtual uint32 InsertSyncPoint() OVERRIDE;
39 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; 39 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE;
40 virtual bool SignalSyncPoint(uint32 sync_point, 40 virtual bool SignalSyncPoint(uint32 sync_point,
41 const base::Closure& callback) OVERRIDE; 41 const base::Closure& callback) OVERRIDE;
42 virtual void SetMemoryAllocationChangedCallback( 42 virtual void SetMemoryAllocationChangedCallback(
43 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& 43 const base::Callback<void(const GpuMemoryAllocationForRenderer&)>&
44 callback) OVERRIDE; 44 callback) OVERRIDE;
45 virtual void SetUpdateVSyncTimeCallback(
46 const base::Callback<void(int64)>& callback) OVERRIDE;
45 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, 47 virtual bool SetParent(CommandBufferProxy* parent_command_buffer,
46 uint32 parent_texture_id) OVERRIDE; 48 uint32 parent_texture_id) OVERRIDE;
47 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; 49 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE;
48 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; 50 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE;
49 virtual void SetOnConsoleMessageCallback( 51 virtual void SetOnConsoleMessageCallback(
50 const GpuConsoleMessageCallback& callback) OVERRIDE; 52 const GpuConsoleMessageCallback& callback) OVERRIDE;
51 53
52 // gpu::CommandBuffer implementation: 54 // gpu::CommandBuffer implementation:
53 virtual bool Initialize(); 55 virtual bool Initialize();
54 virtual State GetState(); 56 virtual State GetState();
(...skipping 26 matching lines...) Expand all
81 83
82 base::Closure channel_error_callback_; 84 base::Closure channel_error_callback_;
83 85
84 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); 86 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy);
85 }; 87 };
86 88
87 } // namespace proxy 89 } // namespace proxy
88 } // namespace ppapi 90 } // namespace ppapi
89 91
90 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ 92 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698