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

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

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 "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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void SetLock(base::Lock*) override; 132 void SetLock(base::Lock*) override;
133 bool IsGpuChannelLost() override; 133 bool IsGpuChannelLost() override;
134 gpu::CommandBufferNamespace GetNamespaceID() const override; 134 gpu::CommandBufferNamespace GetNamespaceID() const override;
135 uint64_t GetCommandBufferID() const override; 135 uint64_t GetCommandBufferID() const override;
136 uint32_t GetExtraCommandBufferData() const override;
136 uint64_t GenerateFenceSyncRelease() override; 137 uint64_t GenerateFenceSyncRelease() override;
137 bool IsFenceSyncRelease(uint64_t release) override; 138 bool IsFenceSyncRelease(uint64_t release) override;
138 bool IsFenceSyncFlushed(uint64_t release) override; 139 bool IsFenceSyncFlushed(uint64_t release) override;
139 bool IsFenceSyncFlushReceived(uint64_t release) override; 140 bool IsFenceSyncFlushReceived(uint64_t release) override;
140 void SignalSyncToken(const gpu::SyncToken& sync_token, 141 void SignalSyncToken(const gpu::SyncToken& sync_token,
141 const base::Closure& callback) override; 142 const base::Closure& callback) override;
142 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 143 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
143 144
144 private: 145 private:
145 void PumpCommands(); 146 void PumpCommands();
(...skipping 26 matching lines...) Expand all
172 // Used on Android to virtualize GL for all contexts. 173 // Used on Android to virtualize GL for all contexts.
173 static int use_count_; 174 static int use_count_;
174 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 175 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
175 static scoped_refptr<gfx::GLSurface>* base_surface_; 176 static scoped_refptr<gfx::GLSurface>* base_surface_;
176 static scoped_refptr<gfx::GLContext>* base_context_; 177 static scoped_refptr<gfx::GLContext>* base_context_;
177 }; 178 };
178 179
179 } // namespace gpu 180 } // namespace gpu
180 181
181 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 182 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698