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 #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 22 matching lines...) Expand all Loading... |
33 virtual int GetRouteID() const OVERRIDE; | 33 virtual int GetRouteID() const OVERRIDE; |
34 virtual bool Echo(const base::Closure& callback) OVERRIDE; | 34 virtual bool Echo(const base::Closure& callback) OVERRIDE; |
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( |
44 callback) OVERRIDE; | 44 const content::GpuMemoryAllocationForRenderer&)>& callback) OVERRIDE; |
45 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, | 45 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, |
46 uint32 parent_texture_id) OVERRIDE; | 46 uint32 parent_texture_id) OVERRIDE; |
47 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; | 47 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; |
48 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; | 48 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; |
49 virtual void SetOnConsoleMessageCallback( | 49 virtual void SetOnConsoleMessageCallback( |
50 const GpuConsoleMessageCallback& callback) OVERRIDE; | 50 const GpuConsoleMessageCallback& callback) OVERRIDE; |
51 | 51 |
52 // gpu::CommandBuffer implementation: | 52 // gpu::CommandBuffer implementation: |
53 virtual bool Initialize(); | 53 virtual bool Initialize(); |
54 virtual State GetState(); | 54 virtual State GetState(); |
(...skipping 26 matching lines...) Expand all Loading... |
81 | 81 |
82 base::Closure channel_error_callback_; | 82 base::Closure channel_error_callback_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 84 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace proxy | 87 } // namespace proxy |
88 } // namespace ppapi | 88 } // namespace ppapi |
89 | 89 |
90 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 90 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
OLD | NEW |