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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 | 602 |
603 void InProcessCommandBuffer::DestroyTransferBufferOnGpuThread(int32 id) { | 603 void InProcessCommandBuffer::DestroyTransferBufferOnGpuThread(int32 id) { |
604 base::AutoLock lock(command_buffer_lock_); | 604 base::AutoLock lock(command_buffer_lock_); |
605 command_buffer_->DestroyTransferBuffer(id); | 605 command_buffer_->DestroyTransferBuffer(id); |
606 } | 606 } |
607 | 607 |
608 gpu::Capabilities InProcessCommandBuffer::GetCapabilities() { | 608 gpu::Capabilities InProcessCommandBuffer::GetCapabilities() { |
609 return capabilities_; | 609 return capabilities_; |
610 } | 610 } |
611 | 611 |
612 gfx::GpuMemoryBuffer* InProcessCommandBuffer::CreateGpuMemoryBuffer( | 612 int32 InProcessCommandBuffer::CreateImage(ClientBuffer buffer, |
| 613 size_t width, |
| 614 size_t height, |
| 615 unsigned internalformat) { |
| 616 NOTREACHED(); |
| 617 return -1; |
| 618 } |
| 619 |
| 620 void InProcessCommandBuffer::DestroyImage(int32 id) { |
| 621 NOTREACHED(); |
| 622 } |
| 623 |
| 624 int32 InProcessCommandBuffer::CreateGpuMemoryBufferImage( |
613 size_t width, | 625 size_t width, |
614 size_t height, | 626 size_t height, |
615 unsigned internalformat, | 627 unsigned internalformat, |
616 unsigned usage, | 628 unsigned usage) { |
617 int32* id) { | |
618 NOTREACHED(); | 629 NOTREACHED(); |
619 return NULL; | 630 return -1; |
620 } | |
621 | |
622 void InProcessCommandBuffer::DestroyGpuMemoryBuffer(int32 id) { | |
623 NOTREACHED(); | |
624 } | 631 } |
625 | 632 |
626 uint32 InProcessCommandBuffer::InsertSyncPoint() { | 633 uint32 InProcessCommandBuffer::InsertSyncPoint() { |
627 uint32 sync_point = g_sync_point_manager.Get().GenerateSyncPoint(); | 634 uint32 sync_point = g_sync_point_manager.Get().GenerateSyncPoint(); |
628 QueueTask(base::Bind(&InProcessCommandBuffer::RetireSyncPointOnGpuThread, | 635 QueueTask(base::Bind(&InProcessCommandBuffer::RetireSyncPointOnGpuThread, |
629 base::Unretained(this), | 636 base::Unretained(this), |
630 sync_point)); | 637 sync_point)); |
631 return sync_point; | 638 return sync_point; |
632 } | 639 } |
633 | 640 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 | 776 |
770 #if defined(OS_ANDROID) | 777 #if defined(OS_ANDROID) |
771 scoped_refptr<gfx::SurfaceTexture> | 778 scoped_refptr<gfx::SurfaceTexture> |
772 InProcessCommandBuffer::GetSurfaceTexture(uint32 stream_id) { | 779 InProcessCommandBuffer::GetSurfaceTexture(uint32 stream_id) { |
773 DCHECK(stream_texture_manager_); | 780 DCHECK(stream_texture_manager_); |
774 return stream_texture_manager_->GetSurfaceTexture(stream_id); | 781 return stream_texture_manager_->GetSurfaceTexture(stream_id); |
775 } | 782 } |
776 #endif | 783 #endif |
777 | 784 |
778 } // namespace gpu | 785 } // namespace gpu |
OLD | NEW |