| 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 14 matching lines...) Expand all Loading... |
| 25 public: | 25 public: |
| 26 PpapiCommandBufferProxy(const HostResource& resource, | 26 PpapiCommandBufferProxy(const HostResource& resource, |
| 27 ProxyChannel* channel); | 27 ProxyChannel* channel); |
| 28 virtual ~PpapiCommandBufferProxy(); | 28 virtual ~PpapiCommandBufferProxy(); |
| 29 | 29 |
| 30 void ReportChannelError(); | 30 void ReportChannelError(); |
| 31 | 31 |
| 32 // CommandBufferProxy implementation: | 32 // CommandBufferProxy implementation: |
| 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; | |
| 36 virtual bool DiscardBackbuffer() OVERRIDE; | |
| 37 virtual bool EnsureBackbuffer() OVERRIDE; | |
| 38 virtual uint32 InsertSyncPoint() OVERRIDE; | |
| 39 virtual void WaitSyncPoint(uint32 sync_point) OVERRIDE; | |
| 40 virtual bool SignalSyncPoint(uint32 sync_point, | |
| 41 const base::Closure& callback) OVERRIDE; | |
| 42 virtual void SetMemoryAllocationChangedCallback( | |
| 43 const base::Callback<void( | |
| 44 const content::GpuMemoryAllocationForRenderer&)>& callback) OVERRIDE; | |
| 45 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, | 35 virtual bool SetParent(CommandBufferProxy* parent_command_buffer, |
| 46 uint32 parent_texture_id) OVERRIDE; | 36 uint32 parent_texture_id) OVERRIDE; |
| 47 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; | 37 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; |
| 48 virtual void SetNotifyRepaintTask(const base::Closure& callback) OVERRIDE; | |
| 49 virtual void SetOnConsoleMessageCallback( | |
| 50 const GpuConsoleMessageCallback& callback) OVERRIDE; | |
| 51 | 38 |
| 52 // gpu::CommandBuffer implementation: | 39 // gpu::CommandBuffer implementation: |
| 53 virtual bool Initialize(); | 40 virtual bool Initialize(); |
| 54 virtual State GetState(); | 41 virtual State GetState(); |
| 55 virtual State GetLastState(); | 42 virtual State GetLastState(); |
| 56 virtual void Flush(int32 put_offset); | 43 virtual void Flush(int32 put_offset); |
| 57 virtual State FlushSync(int32 put_offset, int32 last_known_get); | 44 virtual State FlushSync(int32 put_offset, int32 last_known_get); |
| 58 virtual void SetGetBuffer(int32 transfer_buffer_id); | 45 virtual void SetGetBuffer(int32 transfer_buffer_id); |
| 59 virtual void SetGetOffset(int32 get_offset); | 46 virtual void SetGetOffset(int32 get_offset); |
| 60 virtual int32 CreateTransferBuffer(size_t size, int32 id_request); | 47 virtual int32 CreateTransferBuffer(size_t size, int32 id_request); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 81 | 68 |
| 82 base::Closure channel_error_callback_; | 69 base::Closure channel_error_callback_; |
| 83 | 70 |
| 84 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 71 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
| 85 }; | 72 }; |
| 86 | 73 |
| 87 } // namespace proxy | 74 } // namespace proxy |
| 88 } // namespace ppapi | 75 } // namespace ppapi |
| 89 | 76 |
| 90 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 77 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |