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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 int32 CreateGpuMemoryBufferImage(size_t width, | 57 int32 CreateGpuMemoryBufferImage(size_t width, |
58 size_t height, | 58 size_t height, |
59 unsigned internalformat, | 59 unsigned internalformat, |
60 unsigned usage) override; | 60 unsigned usage) override; |
61 uint32 InsertSyncPoint() override; | 61 uint32 InsertSyncPoint() override; |
62 uint32 InsertFutureSyncPoint() override; | 62 uint32 InsertFutureSyncPoint() override; |
63 void RetireSyncPoint(uint32 sync_point) override; | 63 void RetireSyncPoint(uint32 sync_point) override; |
64 void SignalSyncPoint(uint32 sync_point, | 64 void SignalSyncPoint(uint32 sync_point, |
65 const base::Closure& callback) override; | 65 const base::Closure& callback) override; |
66 void SignalQuery(uint32 query, const base::Closure& callback) override; | 66 void SignalQuery(uint32 query, const base::Closure& callback) override; |
67 void SetSurfaceVisible(bool visible) override; | |
68 void SetLock(base::Lock*) override; | 67 void SetLock(base::Lock*) override; |
69 bool IsGpuChannelLost() override; | 68 bool IsGpuChannelLost() override; |
70 gpu::CommandBufferNamespace GetNamespaceID() const override; | 69 gpu::CommandBufferNamespace GetNamespaceID() const override; |
71 uint64_t GetCommandBufferID() const override; | 70 uint64_t GetCommandBufferID() const override; |
72 uint64_t GenerateFenceSyncRelease() override; | 71 uint64_t GenerateFenceSyncRelease() override; |
73 bool IsFenceSyncRelease(uint64_t release) override; | 72 bool IsFenceSyncRelease(uint64_t release) override; |
74 bool IsFenceSyncFlushed(uint64_t release) override; | 73 bool IsFenceSyncFlushed(uint64_t release) override; |
75 bool IsFenceSyncFlushReceived(uint64_t release) override; | 74 bool IsFenceSyncFlushReceived(uint64_t release) override; |
76 void SignalSyncToken(const gpu::SyncToken& sync_token, | 75 void SignalSyncToken(const gpu::SyncToken& sync_token, |
77 const base::Closure& callback) override; | 76 const base::Closure& callback) override; |
(...skipping 28 matching lines...) Expand all Loading... |
106 uint64_t pending_fence_sync_release_; | 105 uint64_t pending_fence_sync_release_; |
107 uint64_t flushed_fence_sync_release_; | 106 uint64_t flushed_fence_sync_release_; |
108 | 107 |
109 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); | 108 DISALLOW_COPY_AND_ASSIGN(PpapiCommandBufferProxy); |
110 }; | 109 }; |
111 | 110 |
112 } // namespace proxy | 111 } // namespace proxy |
113 } // namespace ppapi | 112 } // namespace ppapi |
114 | 113 |
115 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ | 114 #endif // PPAPI_PROXY_COMMAND_BUFFER_PROXY_H_ |
OLD | NEW |