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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 gpu_memory_buffer_manager_->AllocateGpuMemoryBuffer( | 816 gpu_memory_buffer_manager_->AllocateGpuMemoryBuffer( |
817 gfx::Size(width, height), | 817 gfx::Size(width, height), |
818 gpu::ImageFactory::DefaultBufferFormatForImageFormat(internalformat), | 818 gpu::ImageFactory::DefaultBufferFormatForImageFormat(internalformat), |
819 gfx::BufferUsage::SCANOUT)); | 819 gfx::BufferUsage::SCANOUT)); |
820 if (!buffer) | 820 if (!buffer) |
821 return -1; | 821 return -1; |
822 | 822 |
823 return CreateImage(buffer->AsClientBuffer(), width, height, internalformat); | 823 return CreateImage(buffer->AsClientBuffer(), width, height, internalformat); |
824 } | 824 } |
825 | 825 |
826 uint32_t InProcessCommandBuffer::InsertSyncPoint() { | |
827 NOTREACHED(); | |
828 return 0; | |
829 } | |
830 | |
831 uint32_t InProcessCommandBuffer::InsertFutureSyncPoint() { | |
832 NOTREACHED(); | |
833 return 0; | |
834 } | |
835 | |
836 void InProcessCommandBuffer::RetireSyncPoint(uint32_t sync_point) { | |
837 NOTREACHED(); | |
838 } | |
839 | |
840 void InProcessCommandBuffer::SignalSyncPoint(unsigned sync_point, | |
841 const base::Closure& callback) { | |
842 NOTREACHED(); | |
843 } | |
844 | |
845 void InProcessCommandBuffer::FenceSyncReleaseOnGpuThread(uint64_t release) { | 826 void InProcessCommandBuffer::FenceSyncReleaseOnGpuThread(uint64_t release) { |
846 DCHECK(!sync_point_client_->client_state()->IsFenceSyncReleased(release)); | 827 DCHECK(!sync_point_client_->client_state()->IsFenceSyncReleased(release)); |
847 gles2::MailboxManager* mailbox_manager = | 828 gles2::MailboxManager* mailbox_manager = |
848 decoder_->GetContextGroup()->mailbox_manager(); | 829 decoder_->GetContextGroup()->mailbox_manager(); |
849 if (mailbox_manager->UsesSync()) { | 830 if (mailbox_manager->UsesSync()) { |
850 SyncToken sync_token(GetNamespaceID(), GetExtraCommandBufferData(), | 831 SyncToken sync_token(GetNamespaceID(), GetExtraCommandBufferData(), |
851 GetCommandBufferID(), release); | 832 GetCommandBufferID(), release); |
852 mailbox_manager->PushTextureUpdates(sync_token); | 833 mailbox_manager->PushTextureUpdates(sync_token); |
853 } | 834 } |
854 | 835 |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 framebuffer_completeness_cache_ = | 1080 framebuffer_completeness_cache_ = |
1100 new gpu::gles2::FramebufferCompletenessCache; | 1081 new gpu::gles2::FramebufferCompletenessCache; |
1101 return framebuffer_completeness_cache_; | 1082 return framebuffer_completeness_cache_; |
1102 } | 1083 } |
1103 | 1084 |
1104 SyncPointManager* GpuInProcessThread::sync_point_manager() { | 1085 SyncPointManager* GpuInProcessThread::sync_point_manager() { |
1105 return sync_point_manager_; | 1086 return sync_point_manager_; |
1106 } | 1087 } |
1107 | 1088 |
1108 } // namespace gpu | 1089 } // namespace gpu |
OLD | NEW |