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

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: Return False on invalid stream id 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SetLock(base::Lock*) override; 131 void SetLock(base::Lock*) override;
132 bool IsGpuChannelLost() override; 132 bool IsGpuChannelLost() override;
133 gpu::CommandBufferNamespace GetNamespaceID() const override; 133 gpu::CommandBufferNamespace GetNamespaceID() const override;
134 uint64_t GetCommandBufferID() const override; 134 uint64_t GetCommandBufferID() const override;
135 int32_t GetExtraCommandBufferData() const override;
135 uint64_t GenerateFenceSyncRelease() override; 136 uint64_t GenerateFenceSyncRelease() override;
136 bool IsFenceSyncRelease(uint64_t release) override; 137 bool IsFenceSyncRelease(uint64_t release) override;
137 bool IsFenceSyncFlushed(uint64_t release) override; 138 bool IsFenceSyncFlushed(uint64_t release) override;
138 bool IsFenceSyncFlushReceived(uint64_t release) override; 139 bool IsFenceSyncFlushReceived(uint64_t release) override;
139 void SignalSyncToken(const gpu::SyncToken& sync_token, 140 void SignalSyncToken(const gpu::SyncToken& sync_token,
140 const base::Closure& callback) override; 141 const base::Closure& callback) override;
141 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 142 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
142 143
143 private: 144 private:
144 void PumpCommands(); 145 void PumpCommands();
(...skipping 26 matching lines...) Expand all
171 // Used on Android to virtualize GL for all contexts. 172 // Used on Android to virtualize GL for all contexts.
172 static int use_count_; 173 static int use_count_;
173 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; 174 static scoped_refptr<gfx::GLShareGroup>* base_share_group_;
174 static scoped_refptr<gfx::GLSurface>* base_surface_; 175 static scoped_refptr<gfx::GLSurface>* base_surface_;
175 static scoped_refptr<gfx::GLContext>* base_context_; 176 static scoped_refptr<gfx::GLContext>* base_context_;
176 }; 177 };
177 178
178 } // namespace gpu 179 } // namespace gpu
179 180
180 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ 181 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/mailbox_manager_unittest.cc ('k') | gpu/command_buffer/tests/gl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698