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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.cc

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "gpu/command_buffer/service/in_process_command_buffer.h" 5 #include "gpu/command_buffer/service/in_process_command_buffer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 callback.Run(); 911 callback.Run();
912 else 912 else
913 query->AddCallback(callback); 913 query->AddCallback(callback);
914 } 914 }
915 915
916 void InProcessCommandBuffer::SetLock(base::Lock*) { 916 void InProcessCommandBuffer::SetLock(base::Lock*) {
917 // No support for using on multiple threads. 917 // No support for using on multiple threads.
918 NOTREACHED(); 918 NOTREACHED();
919 } 919 }
920 920
921 bool InProcessCommandBuffer::IsGpuChannelLost() {
922 // There is no such channel to lose for in-process contexts. This only
923 // makes sense for out-of-process command buffers.
924 return false;
925 }
926
927 void InProcessCommandBuffer::EnsureWorkVisible() { 921 void InProcessCommandBuffer::EnsureWorkVisible() {
928 // This is only relevant for out-of-process command buffers. 922 // This is only relevant for out-of-process command buffers.
929 } 923 }
930 924
931 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const { 925 CommandBufferNamespace InProcessCommandBuffer::GetNamespaceID() const {
932 return CommandBufferNamespace::IN_PROCESS; 926 return CommandBufferNamespace::IN_PROCESS;
933 } 927 }
934 928
935 CommandBufferId InProcessCommandBuffer::GetCommandBufferID() const { 929 CommandBufferId InProcessCommandBuffer::GetCommandBufferID() const {
936 return command_buffer_id_; 930 return command_buffer_id_;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 framebuffer_completeness_cache_ = 1055 framebuffer_completeness_cache_ =
1062 new gpu::gles2::FramebufferCompletenessCache; 1056 new gpu::gles2::FramebufferCompletenessCache;
1063 return framebuffer_completeness_cache_; 1057 return framebuffer_completeness_cache_;
1064 } 1058 }
1065 1059
1066 SyncPointManager* GpuInProcessThread::sync_point_manager() { 1060 SyncPointManager* GpuInProcessThread::sync_point_manager() {
1067 return sync_point_manager_; 1061 return sync_point_manager_;
1068 } 1062 }
1069 1063
1070 } // namespace gpu 1064 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | gpu/command_buffer/tests/gl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698