Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: gpu/command_buffer/tests/gl_manager.h

Issue 1559893003: Added method to synchronize command buffers within GpuControl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SynchronizeCommandBuffer() -> EnsureWorkVisible() Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 unsigned internalformat, 126 unsigned internalformat,
127 unsigned usage) override; 127 unsigned usage) override;
128 uint32_t InsertSyncPoint() override; 128 uint32_t InsertSyncPoint() override;
129 uint32_t InsertFutureSyncPoint() override; 129 uint32_t InsertFutureSyncPoint() override;
130 void RetireSyncPoint(uint32_t sync_point) override; 130 void RetireSyncPoint(uint32_t sync_point) override;
131 void SignalSyncPoint(uint32_t sync_point, 131 void SignalSyncPoint(uint32_t sync_point,
132 const base::Closure& callback) override; 132 const base::Closure& callback) override;
133 void SignalQuery(uint32_t query, const base::Closure& callback) override; 133 void SignalQuery(uint32_t query, const base::Closure& callback) override;
134 void SetLock(base::Lock*) override; 134 void SetLock(base::Lock*) override;
135 bool IsGpuChannelLost() override; 135 bool IsGpuChannelLost() override;
136 void EnsureWorkVisible() override;
136 gpu::CommandBufferNamespace GetNamespaceID() const override; 137 gpu::CommandBufferNamespace GetNamespaceID() const override;
137 uint64_t GetCommandBufferID() const override; 138 uint64_t GetCommandBufferID() const override;
138 int32_t GetExtraCommandBufferData() const override; 139 int32_t GetExtraCommandBufferData() const override;
139 uint64_t GenerateFenceSyncRelease() override; 140 uint64_t GenerateFenceSyncRelease() override;
140 bool IsFenceSyncRelease(uint64_t release) override; 141 bool IsFenceSyncRelease(uint64_t release) override;
141 bool IsFenceSyncFlushed(uint64_t release) override; 142 bool IsFenceSyncFlushed(uint64_t release) override;
142 bool IsFenceSyncFlushReceived(uint64_t release) override; 143 bool IsFenceSyncFlushReceived(uint64_t release) override;
143 void SignalSyncToken(const gpu::SyncToken& sync_token, 144 void SignalSyncToken(const gpu::SyncToken& sync_token,
144 const base::Closure& callback) override; 145 const base::Closure& callback) override;
145 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 146 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
(...skipping 29 matching lines...) Expand all
175 // Used on Android to virtualize GL for all contexts. 176 // Used on Android to virtualize GL for all contexts.
176 static int use_count_; 177 static int use_count_;
177 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 178 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
178 static scoped_refptr<gfx::GLSurface>* base_surface_; 179 static scoped_refptr<gfx::GLSurface>* base_surface_;
179 static scoped_refptr<gfx::GLContext>* base_context_; 180 static scoped_refptr<gfx::GLContext>* base_context_;
180 }; 181 };
181 182
182 } // namespace gpu 183 } // namespace gpu
183 184
184 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 185 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698