OLD | NEW |
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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
869 uint32 stream_id = 0; | 869 uint32 stream_id = 0; |
870 base::Callback<uint32(void)> task = | 870 base::Callback<uint32(void)> task = |
871 base::Bind(&InProcessCommandBuffer::CreateStreamTextureOnGpuThread, | 871 base::Bind(&InProcessCommandBuffer::CreateStreamTextureOnGpuThread, |
872 base::Unretained(this), | 872 base::Unretained(this), |
873 texture_id); | 873 texture_id); |
874 QueueTask( | 874 QueueTask( |
875 base::Bind(&RunTaskWithResult<uint32>, task, &stream_id, &completion)); | 875 base::Bind(&RunTaskWithResult<uint32>, task, &stream_id, &completion)); |
876 completion.Wait(); | 876 completion.Wait(); |
877 return stream_id; | 877 return stream_id; |
878 } | 878 } |
| 879 uint32 InProcessCommandBuffer::CreateStreamTextureImage(int32 image_id) { |
| 880 NOTIMPLEMENTED(); |
| 881 return 0; |
| 882 } |
879 | 883 |
880 void InProcessCommandBuffer::SetLock(base::Lock*) { | 884 void InProcessCommandBuffer::SetLock(base::Lock*) { |
881 } | 885 } |
882 | 886 |
883 bool InProcessCommandBuffer::IsGpuChannelLost() { | 887 bool InProcessCommandBuffer::IsGpuChannelLost() { |
884 // There is no such channel to lose for in-process contexts. This only | 888 // There is no such channel to lose for in-process contexts. This only |
885 // makes sense for out-of-process command buffers. | 889 // makes sense for out-of-process command buffers. |
886 return false; | 890 return false; |
887 } | 891 } |
888 | 892 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
944 | 948 |
945 #if defined(OS_ANDROID) | 949 #if defined(OS_ANDROID) |
946 scoped_refptr<gfx::SurfaceTexture> | 950 scoped_refptr<gfx::SurfaceTexture> |
947 InProcessCommandBuffer::GetSurfaceTexture(uint32 stream_id) { | 951 InProcessCommandBuffer::GetSurfaceTexture(uint32 stream_id) { |
948 DCHECK(stream_texture_manager_); | 952 DCHECK(stream_texture_manager_); |
949 return stream_texture_manager_->GetSurfaceTexture(stream_id); | 953 return stream_texture_manager_->GetSurfaceTexture(stream_id); |
950 } | 954 } |
951 #endif | 955 #endif |
952 | 956 |
953 } // namespace gpu | 957 } // namespace gpu |
OLD | NEW |