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 GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 int32 CreateGpuMemoryBufferImage(size_t width, | 121 int32 CreateGpuMemoryBufferImage(size_t width, |
122 size_t height, | 122 size_t height, |
123 unsigned internalformat, | 123 unsigned internalformat, |
124 unsigned usage) override; | 124 unsigned usage) override; |
125 uint32 InsertSyncPoint() override; | 125 uint32 InsertSyncPoint() override; |
126 uint32 InsertFutureSyncPoint() override; | 126 uint32 InsertFutureSyncPoint() override; |
127 void RetireSyncPoint(uint32 sync_point) override; | 127 void RetireSyncPoint(uint32 sync_point) override; |
128 void SignalSyncPoint(uint32 sync_point, | 128 void SignalSyncPoint(uint32 sync_point, |
129 const base::Closure& callback) override; | 129 const base::Closure& callback) override; |
130 void SignalQuery(uint32 query, const base::Closure& callback) override; | 130 void SignalQuery(uint32 query, const base::Closure& callback) override; |
131 void SetSurfaceVisible(bool visible) override; | |
132 void SetLock(base::Lock*) override; | 131 void SetLock(base::Lock*) override; |
133 bool IsGpuChannelLost() override; | 132 bool IsGpuChannelLost() override; |
134 gpu::CommandBufferNamespace GetNamespaceID() const override; | 133 gpu::CommandBufferNamespace GetNamespaceID() const override; |
135 uint64_t GetCommandBufferID() const override; | 134 uint64_t GetCommandBufferID() const override; |
136 uint64_t GenerateFenceSyncRelease() override; | 135 uint64_t GenerateFenceSyncRelease() override; |
137 bool IsFenceSyncRelease(uint64_t release) override; | 136 bool IsFenceSyncRelease(uint64_t release) override; |
138 bool IsFenceSyncFlushed(uint64_t release) override; | 137 bool IsFenceSyncFlushed(uint64_t release) override; |
139 bool IsFenceSyncFlushReceived(uint64_t release) override; | 138 bool IsFenceSyncFlushReceived(uint64_t release) override; |
140 void SignalSyncToken(const gpu::SyncToken& sync_token, | 139 void SignalSyncToken(const gpu::SyncToken& sync_token, |
141 const base::Closure& callback) override; | 140 const base::Closure& callback) override; |
(...skipping 30 matching lines...) Expand all Loading... |
172 // Used on Android to virtualize GL for all contexts. | 171 // Used on Android to virtualize GL for all contexts. |
173 static int use_count_; | 172 static int use_count_; |
174 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 173 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
175 static scoped_refptr<gfx::GLSurface>* base_surface_; | 174 static scoped_refptr<gfx::GLSurface>* base_surface_; |
176 static scoped_refptr<gfx::GLContext>* base_context_; | 175 static scoped_refptr<gfx::GLContext>* base_context_; |
177 }; | 176 }; |
178 | 177 |
179 } // namespace gpu | 178 } // namespace gpu |
180 | 179 |
181 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 180 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
OLD | NEW |