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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 2550583002: gpu: Thread-safe command buffer state lookup. (Closed)
Patch Set: jbauman's review Created 4 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_CLIENT_GLES2_IMPLEMENTATION_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const char* function_name, GLuint id, GLenum pname, GLuint64* params); 244 const char* function_name, GLuint id, GLenum pname, GLuint64* params);
245 245
246 void FreeUnusedSharedMemory(); 246 void FreeUnusedSharedMemory();
247 void FreeEverything(); 247 void FreeEverything();
248 248
249 void FreeSharedMemory(void*) override; 249 void FreeSharedMemory(void*) override;
250 250
251 // ContextSupport implementation. 251 // ContextSupport implementation.
252 void SignalSyncToken(const gpu::SyncToken& sync_token, 252 void SignalSyncToken(const gpu::SyncToken& sync_token,
253 const base::Closure& callback) override; 253 const base::Closure& callback) override;
254 bool IsFenceSyncReleased(uint64_t release_count) override;
254 void SignalQuery(uint32_t query, const base::Closure& callback) override; 255 void SignalQuery(uint32_t query, const base::Closure& callback) override;
255 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; 256 void SetAggressivelyFreeResources(bool aggressively_free_resources) override;
256 257
257 // base::trace_event::MemoryDumpProvider implementation. 258 // base::trace_event::MemoryDumpProvider implementation.
258 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, 259 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args,
259 base::trace_event::ProcessMemoryDump* pmd) override; 260 base::trace_event::ProcessMemoryDump* pmd) override;
260 261
261 const scoped_refptr<ShareGroup>& share_group() const { return share_group_; } 262 const scoped_refptr<ShareGroup>& share_group() const { return share_group_; }
262 263
263 const Capabilities& capabilities() const { 264 const Capabilities& capabilities() const {
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 std::unique_ptr<IdAllocator> query_id_allocator_; 810 std::unique_ptr<IdAllocator> query_id_allocator_;
810 811
811 std::unique_ptr<BufferTracker> buffer_tracker_; 812 std::unique_ptr<BufferTracker> buffer_tracker_;
812 813
813 base::Callback<void(const char*, int32_t)> error_message_callback_; 814 base::Callback<void(const char*, int32_t)> error_message_callback_;
814 base::Closure lost_context_callback_; 815 base::Closure lost_context_callback_;
815 bool lost_context_callback_run_ = false; 816 bool lost_context_callback_run_ = false;
816 817
817 int current_trace_stack_; 818 int current_trace_stack_;
818 819
819 GpuControl* gpu_control_; 820 GpuControl* const gpu_control_;
820 821
821 Capabilities capabilities_; 822 Capabilities capabilities_;
822 823
823 // Flag to indicate whether the implementation can retain resources, or 824 // Flag to indicate whether the implementation can retain resources, or
824 // whether it should aggressively free them. 825 // whether it should aggressively free them.
825 bool aggressively_free_resources_; 826 bool aggressively_free_resources_;
826 827
827 // Result of last GetString(GL_EXTENSIONS), used to keep 828 // Result of last GetString(GL_EXTENSIONS), used to keep
828 // GetString(GL_EXTENSIONS), GetStringi(GL_EXTENSIONS, index) and 829 // GetString(GL_EXTENSIONS), GetStringi(GL_EXTENSIONS, index) and
829 // GetIntegerv(GL_NUM_EXTENSIONS) in sync. This points to gl_strings, valid 830 // GetIntegerv(GL_NUM_EXTENSIONS) in sync. This points to gl_strings, valid
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 875
875 inline bool GLES2Implementation::GetTexParameterivHelper( 876 inline bool GLES2Implementation::GetTexParameterivHelper(
876 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 877 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
877 return false; 878 return false;
878 } 879 }
879 880
880 } // namespace gles2 881 } // namespace gles2
881 } // namespace gpu 882 } // namespace gpu
882 883
883 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 884 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/context_support.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698