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

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

Issue 2727573003: gpu: Add sync token dependencies to flush metadata. (Closed)
Patch Set: piman's review 2 Created 3 years, 9 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
« no previous file with comments | « gpu/command_buffer/common/sync_token.h ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 gpu::CommandBufferNamespace GetNamespaceID() const override; 139 gpu::CommandBufferNamespace GetNamespaceID() const override;
140 CommandBufferId GetCommandBufferID() const override; 140 CommandBufferId GetCommandBufferID() const override;
141 int32_t GetExtraCommandBufferData() const override; 141 int32_t GetExtraCommandBufferData() const override;
142 uint64_t GenerateFenceSyncRelease() override; 142 uint64_t GenerateFenceSyncRelease() override;
143 bool IsFenceSyncRelease(uint64_t release) override; 143 bool IsFenceSyncRelease(uint64_t release) override;
144 bool IsFenceSyncFlushed(uint64_t release) override; 144 bool IsFenceSyncFlushed(uint64_t release) override;
145 bool IsFenceSyncFlushReceived(uint64_t release) override; 145 bool IsFenceSyncFlushReceived(uint64_t release) override;
146 bool IsFenceSyncReleased(uint64_t release) override; 146 bool IsFenceSyncReleased(uint64_t release) override;
147 void SignalSyncToken(const gpu::SyncToken& sync_token, 147 void SignalSyncToken(const gpu::SyncToken& sync_token,
148 const base::Closure& callback) override; 148 const base::Closure& callback) override;
149 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 149 void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override;
150 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override;
150 151
151 private: 152 private:
152 void PumpCommands(); 153 void PumpCommands();
153 bool GetBufferChanged(int32_t transfer_buffer_id); 154 bool GetBufferChanged(int32_t transfer_buffer_id);
154 void SetupBaseContext(); 155 void SetupBaseContext();
155 void OnFenceSyncRelease(uint64_t release); 156 void OnFenceSyncRelease(uint64_t release);
156 bool OnWaitSyncToken(const SyncToken& sync_token); 157 bool OnWaitSyncToken(const SyncToken& sync_token);
157 158
158 gpu::GpuPreferences gpu_preferences_; 159 gpu::GpuPreferences gpu_preferences_;
159 160
(...skipping 23 matching lines...) Expand all
183 // Used on Android to virtualize GL for all contexts. 184 // Used on Android to virtualize GL for all contexts.
184 static int use_count_; 185 static int use_count_;
185 static scoped_refptr<gl::GLShareGroup>* base_share_group_; 186 static scoped_refptr<gl::GLShareGroup>* base_share_group_;
186 static scoped_refptr<gl::GLSurface>* base_surface_; 187 static scoped_refptr<gl::GLSurface>* base_surface_;
187 static scoped_refptr<gl::GLContext>* base_context_; 188 static scoped_refptr<gl::GLContext>* base_context_;
188 }; 189 };
189 190
190 } // namespace gpu 191 } // namespace gpu
191 192
192 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 193 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/sync_token.h ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698