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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 uint32 InsertSyncPoint() override; | 60 uint32 InsertSyncPoint() override; |
61 uint32 InsertFutureSyncPoint() override; | 61 uint32 InsertFutureSyncPoint() override; |
62 void RetireSyncPoint(uint32 sync_point) override; | 62 void RetireSyncPoint(uint32 sync_point) override; |
63 void SignalSyncPoint(uint32 sync_point, | 63 void SignalSyncPoint(uint32 sync_point, |
64 const base::Closure& callback) override; | 64 const base::Closure& callback) override; |
65 void SignalQuery(uint32 query, const base::Closure& callback) override; | 65 void SignalQuery(uint32 query, const base::Closure& callback) override; |
66 void SetSurfaceVisible(bool visible) override; | 66 void SetSurfaceVisible(bool visible) override; |
67 uint32 CreateStreamTexture(uint32 texture_id) override; | 67 uint32 CreateStreamTexture(uint32 texture_id) override; |
68 void SetLock(base::Lock*) override; | 68 void SetLock(base::Lock*) override; |
69 bool IsGpuChannelLost() override; | 69 bool IsGpuChannelLost() override; |
| 70 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 71 uint64_t GetCommandBufferID() const override; |
70 | 72 |
71 private: | 73 private: |
72 bool Send(IPC::Message* msg); | 74 bool Send(IPC::Message* msg); |
73 void UpdateState(const gpu::CommandBuffer::State& state, bool success); | 75 void UpdateState(const gpu::CommandBuffer::State& state, bool success); |
74 | 76 |
75 // Try to read an updated copy of the state from shared memory. | 77 // Try to read an updated copy of the state from shared memory. |
76 void TryUpdateState(); | 78 void TryUpdateState(); |
77 | 79 |
78 // The shared memory area used to update state. | 80 // The shared memory area used to update state. |
79 gpu::CommandBufferSharedState* shared_state() const; | 81 gpu::CommandBufferSharedState* shared_state() const; |
(...skipping 11 matching lines...) Expand all Loading... |
91 | 93 |
92 InstanceData::FlushInfo *flush_info_; | 94 InstanceData::FlushInfo *flush_info_; |
93 | 95 |
94 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 96 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
95 }; | 97 }; |
96 | 98 |
97 } // namespace proxy | 99 } // namespace proxy |
98 } // namespace ppapi | 100 } // namespace ppapi |
99 | 101 |
100 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 102 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
OLD | NEW |