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

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

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: . Created 5 years, 6 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 <queue> 7 #include <queue>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
905 texture_id); 905 texture_id);
906 QueueTask( 906 QueueTask(
907 base::Bind(&RunTaskWithResult<uint32>, task, &stream_id, &completion)); 907 base::Bind(&RunTaskWithResult<uint32>, task, &stream_id, &completion));
908 completion.Wait(); 908 completion.Wait();
909 return stream_id; 909 return stream_id;
910 } 910 }
911 911
912 void InProcessCommandBuffer::SetLock(base::Lock*) { 912 void InProcessCommandBuffer::SetLock(base::Lock*) {
913 } 913 }
914 914
915 bool InProcessCommandBuffer::IsGpuChannelLost() {
916 // There is no such channel to lose for in-process contexts. This only
917 // makes sense for out-of-process command buffers.
918 return false;
919 }
920
915 uint32 InProcessCommandBuffer::CreateStreamTextureOnGpuThread( 921 uint32 InProcessCommandBuffer::CreateStreamTextureOnGpuThread(
916 uint32 client_texture_id) { 922 uint32 client_texture_id) {
917 #if defined(OS_ANDROID) 923 #if defined(OS_ANDROID)
918 return stream_texture_manager_->CreateStreamTexture( 924 return stream_texture_manager_->CreateStreamTexture(
919 client_texture_id, decoder_->GetContextGroup()->texture_manager()); 925 client_texture_id, decoder_->GetContextGroup()->texture_manager());
920 #else 926 #else
921 return 0; 927 return 0;
922 #endif 928 #endif
923 } 929 }
924 930
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 976
971 #if defined(OS_ANDROID) 977 #if defined(OS_ANDROID)
972 scoped_refptr<gfx::SurfaceTexture> 978 scoped_refptr<gfx::SurfaceTexture>
973 InProcessCommandBuffer::GetSurfaceTexture(uint32 stream_id) { 979 InProcessCommandBuffer::GetSurfaceTexture(uint32 stream_id) {
974 DCHECK(stream_texture_manager_); 980 DCHECK(stream_texture_manager_);
975 return stream_texture_manager_->GetSurfaceTexture(stream_id); 981 return stream_texture_manager_->GetSurfaceTexture(stream_id);
976 } 982 }
977 #endif 983 #endif
978 984
979 } // namespace gpu 985 } // 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