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

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

Issue 1916303003: Report lost context from GLES2Implementation based on share group state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lost-share-group: disconnect-channel Created 4 years, 7 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_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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 }; 406 };
407 407
408 // Gets the value of the result. 408 // Gets the value of the result.
409 template <typename T> 409 template <typename T>
410 T GetResultAs() { 410 T GetResultAs() {
411 return static_cast<T>(GetResultBuffer()); 411 return static_cast<T>(GetResultBuffer());
412 } 412 }
413 413
414 // GpuControlClient implementation. 414 // GpuControlClient implementation.
415 void OnGpuControlLostContext() final; 415 void OnGpuControlLostContext() final;
416 void OnGpuControlLostContextMaybeReentrant() final;
416 void OnGpuControlErrorMessage(const char* message, int32_t id) final; 417 void OnGpuControlErrorMessage(const char* message, int32_t id) final;
417 418
418 void* GetResultBuffer(); 419 void* GetResultBuffer();
419 int32_t GetResultShmId(); 420 int32_t GetResultShmId();
420 uint32_t GetResultShmOffset(); 421 uint32_t GetResultShmOffset();
421 422
422 bool IsChromiumFramebufferMultisampleAvailable(); 423 bool IsChromiumFramebufferMultisampleAvailable();
423 424
424 bool IsExtensionAvailableHelper( 425 bool IsExtensionAvailableHelper(
425 const char* extension, ExtensionStatus* status); 426 const char* extension, ExtensionStatus* status);
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 scoped_refptr<ShareGroup> share_group_; 811 scoped_refptr<ShareGroup> share_group_;
811 ShareGroupContextData share_group_context_data_; 812 ShareGroupContextData share_group_context_data_;
812 813
813 std::unique_ptr<QueryTracker> query_tracker_; 814 std::unique_ptr<QueryTracker> query_tracker_;
814 std::unique_ptr<IdAllocator> query_id_allocator_; 815 std::unique_ptr<IdAllocator> query_id_allocator_;
815 816
816 std::unique_ptr<BufferTracker> buffer_tracker_; 817 std::unique_ptr<BufferTracker> buffer_tracker_;
817 818
818 base::Callback<void(const char*, int32_t)> error_message_callback_; 819 base::Callback<void(const char*, int32_t)> error_message_callback_;
819 base::Closure lost_context_callback_; 820 base::Closure lost_context_callback_;
820 #if DCHECK_IS_ON() 821 bool lost_context_callback_run_ = false;
821 bool lost_context_ = false;
822 #endif
823 822
824 int current_trace_stack_; 823 int current_trace_stack_;
825 824
826 GpuControl* gpu_control_; 825 GpuControl* gpu_control_;
827 826
828 Capabilities capabilities_; 827 Capabilities capabilities_;
829 828
830 // Flag to indicate whether the implementation can retain resources, or 829 // Flag to indicate whether the implementation can retain resources, or
831 // whether it should aggressively free them. 830 // whether it should aggressively free them.
832 bool aggressively_free_resources_; 831 bool aggressively_free_resources_;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 880
882 inline bool GLES2Implementation::GetTexParameterivHelper( 881 inline bool GLES2Implementation::GetTexParameterivHelper(
883 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 882 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
884 return false; 883 return false;
885 } 884 }
886 885
887 } // namespace gles2 886 } // namespace gles2
888 } // namespace gpu 887 } // namespace gpu
889 888
890 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 889 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698