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 SetParent(CommandBufferProxy* parent_command_buffer, | 35 virtual bool ProduceFrontBuffer(const gpu::Mailbox& mailbox) OVERRIDE; |
36 uint32 parent_texture_id) OVERRIDE; | |
37 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; | 36 virtual void SetChannelErrorCallback(const base::Closure& callback) OVERRIDE; |
38 | 37 |
39 // gpu::CommandBuffer implementation: | 38 // gpu::CommandBuffer implementation: |
40 virtual bool Initialize(); | 39 virtual bool Initialize(); |
41 virtual State GetState(); | 40 virtual State GetState(); |
42 virtual State GetLastState(); | 41 virtual State GetLastState(); |
43 virtual int32 GetLastToken(); | 42 virtual int32 GetLastToken(); |
44 virtual void Flush(int32 put_offset); | 43 virtual void Flush(int32 put_offset); |
45 virtual State FlushSync(int32 put_offset, int32 last_known_get); | 44 virtual State FlushSync(int32 put_offset, int32 last_known_get); |
46 virtual void SetGetBuffer(int32 transfer_buffer_id); | 45 virtual void SetGetBuffer(int32 transfer_buffer_id); |
(...skipping 20 matching lines...) Expand all Loading... |
67 | 66 |
68 base::Closure channel_error_callback_; | 67 base::Closure channel_error_callback_; |
69 | 68 |
70 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 69 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
71 }; | 70 }; |
72 | 71 |
73 } // namespace proxy | 72 } // namespace proxy |
74 } // namespace ppapi | 73 } // namespace ppapi |
75 | 74 |
76 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 75 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
OLD | NEW |