| 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/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "gpu/command_buffer/client/gpu_control.h" | 10 #include "gpu/command_buffer/client/gpu_control.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 unsigned internalformat, | 47 unsigned internalformat, |
| 48 unsigned usage, | 48 unsigned usage, |
| 49 int32* id) OVERRIDE; | 49 int32* id) OVERRIDE; |
| 50 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; | 50 virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE; |
| 51 virtual uint32 InsertSyncPoint() OVERRIDE; | 51 virtual uint32 InsertSyncPoint() OVERRIDE; |
| 52 virtual void SignalSyncPoint(uint32 sync_point, | 52 virtual void SignalSyncPoint(uint32 sync_point, |
| 53 const base::Closure& callback) OVERRIDE; | 53 const base::Closure& callback) OVERRIDE; |
| 54 virtual void SignalQuery(uint32 query, | 54 virtual void SignalQuery(uint32 query, |
| 55 const base::Closure& callback) OVERRIDE; | 55 const base::Closure& callback) OVERRIDE; |
| 56 virtual void SetSurfaceVisible(bool visible) OVERRIDE; | 56 virtual void SetSurfaceVisible(bool visible) OVERRIDE; |
| 57 virtual void SendManagedMemoryStats(const gpu::ManagedMemoryStats& stats) | |
| 58 OVERRIDE; | |
| 59 virtual void Echo(const base::Closure& callback) OVERRIDE; | 57 virtual void Echo(const base::Closure& callback) OVERRIDE; |
| 60 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; | 58 virtual uint32 CreateStreamTexture(uint32 texture_id) OVERRIDE; |
| 61 | 59 |
| 62 private: | 60 private: |
| 63 bool Send(IPC::Message* msg); | 61 bool Send(IPC::Message* msg); |
| 64 void UpdateState(const gpu::CommandBuffer::State& state, bool success); | 62 void UpdateState(const gpu::CommandBuffer::State& state, bool success); |
| 65 | 63 |
| 66 State last_state_; | 64 State last_state_; |
| 67 | 65 |
| 68 HostResource resource_; | 66 HostResource resource_; |
| 69 ProxyChannel* channel_; | 67 ProxyChannel* channel_; |
| 70 | 68 |
| 71 base::Closure channel_error_callback_; | 69 base::Closure channel_error_callback_; |
| 72 | 70 |
| 73 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 71 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
| 74 }; | 72 }; |
| 75 | 73 |
| 76 } // namespace proxy | 74 } // namespace proxy |
| 77 } // namespace ppapi | 75 } // namespace ppapi |
| 78 | 76 |
| 79 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 77 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
| OLD | NEW |