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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 const base::Closure& callback) { | 690 const base::Closure& callback) { |
691 CheckSequencedThread(); | 691 CheckSequencedThread(); |
692 QueueTask(base::Bind(&GpuControlService::SignalQuery, | 692 QueueTask(base::Bind(&GpuControlService::SignalQuery, |
693 base::Unretained(gpu_control_.get()), | 693 base::Unretained(gpu_control_.get()), |
694 query, | 694 query, |
695 WrapCallback(callback))); | 695 WrapCallback(callback))); |
696 } | 696 } |
697 | 697 |
698 void InProcessCommandBuffer::SetSurfaceVisible(bool visible) {} | 698 void InProcessCommandBuffer::SetSurfaceVisible(bool visible) {} |
699 | 699 |
700 void InProcessCommandBuffer::SendManagedMemoryStats( | |
701 const gpu::ManagedMemoryStats& stats) { | |
702 } | |
703 | |
704 void InProcessCommandBuffer::Echo(const base::Closure& callback) { | 700 void InProcessCommandBuffer::Echo(const base::Closure& callback) { |
705 QueueTask(WrapCallback(callback)); | 701 QueueTask(WrapCallback(callback)); |
706 } | 702 } |
707 | 703 |
708 uint32 InProcessCommandBuffer::CreateStreamTexture(uint32 texture_id) { | 704 uint32 InProcessCommandBuffer::CreateStreamTexture(uint32 texture_id) { |
709 base::WaitableEvent completion(true, false); | 705 base::WaitableEvent completion(true, false); |
710 uint32 stream_id = 0; | 706 uint32 stream_id = 0; |
711 base::Callback<uint32(void)> task = | 707 base::Callback<uint32(void)> task = |
712 base::Bind(&InProcessCommandBuffer::CreateStreamTextureOnGpuThread, | 708 base::Bind(&InProcessCommandBuffer::CreateStreamTextureOnGpuThread, |
713 base::Unretained(this), | 709 base::Unretained(this), |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
777 } | 773 } |
778 #endif | 774 #endif |
779 | 775 |
780 // static | 776 // static |
781 void InProcessCommandBuffer::SetGpuMemoryBufferFactory( | 777 void InProcessCommandBuffer::SetGpuMemoryBufferFactory( |
782 GpuMemoryBufferFactory* factory) { | 778 GpuMemoryBufferFactory* factory) { |
783 g_gpu_memory_buffer_factory = factory; | 779 g_gpu_memory_buffer_factory = factory; |
784 } | 780 } |
785 | 781 |
786 } // namespace gpu | 782 } // namespace gpu |
OLD | NEW |