| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 131 void SetSurfaceVisible(bool visible) override; |
| 132 uint32 CreateStreamTexture(uint32 texture_id) override; | |
| 133 void SetLock(base::Lock*) override; | 132 void SetLock(base::Lock*) override; |
| 134 bool IsGpuChannelLost() override; | 133 bool IsGpuChannelLost() override; |
| 135 gpu::CommandBufferNamespace GetNamespaceID() const override; | 134 gpu::CommandBufferNamespace GetNamespaceID() const override; |
| 136 uint64_t GetCommandBufferID() const override; | 135 uint64_t GetCommandBufferID() const override; |
| 137 uint64_t GenerateFenceSyncRelease() override; | 136 uint64_t GenerateFenceSyncRelease() override; |
| 138 bool IsFenceSyncRelease(uint64_t release) override; | 137 bool IsFenceSyncRelease(uint64_t release) override; |
| 139 bool IsFenceSyncFlushed(uint64_t release) override; | 138 bool IsFenceSyncFlushed(uint64_t release) override; |
| 140 bool IsFenceSyncFlushReceived(uint64_t release) override; | 139 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 141 void SignalSyncToken(const gpu::SyncToken& sync_token, | 140 void SignalSyncToken(const gpu::SyncToken& sync_token, |
| 142 const base::Closure& callback) override; | 141 const base::Closure& callback) override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 173 // Used on Android to virtualize GL for all contexts. | 172 // Used on Android to virtualize GL for all contexts. |
| 174 static int use_count_; | 173 static int use_count_; |
| 175 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 174 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
| 176 static scoped_refptr<gfx::GLSurface>* base_surface_; | 175 static scoped_refptr<gfx::GLSurface>* base_surface_; |
| 177 static scoped_refptr<gfx::GLContext>* base_context_; | 176 static scoped_refptr<gfx::GLContext>* base_context_; |
| 178 }; | 177 }; |
| 179 | 178 |
| 180 } // namespace gpu | 179 } // namespace gpu |
| 181 | 180 |
| 182 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 181 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
| OLD | NEW |