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

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

Issue 24925002: Move Insert/SignalSyncPoint() to GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase past r226145 Created 7 years, 2 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 | Annotate | Revision Log
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 <utility> 8 #include <utility>
9 9
10 #include <GLES2/gl2.h> 10 #include <GLES2/gl2.h>
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 id); 633 id);
634 634
635 QueueTask(task); 635 QueueTask(task);
636 } 636 }
637 637
638 gpu::Buffer InProcessCommandBuffer::GetTransferBuffer(int32 id) { 638 gpu::Buffer InProcessCommandBuffer::GetTransferBuffer(int32 id) {
639 NOTREACHED(); 639 NOTREACHED();
640 return gpu::Buffer(); 640 return gpu::Buffer();
641 } 641 }
642 642
643 uint32 InProcessCommandBuffer::InsertSyncPoint() {
644 NOTREACHED();
645 return 0;
646 }
647 void InProcessCommandBuffer::SignalSyncPoint(unsigned sync_point,
648 const base::Closure& callback) {
649 CheckSequencedThread();
650 QueueTask(WrapCallback(callback));
651 }
652
653 bool InProcessCommandBuffer::SupportsGpuMemoryBuffer() { 643 bool InProcessCommandBuffer::SupportsGpuMemoryBuffer() {
654 return supports_gpu_memory_buffer_; 644 return supports_gpu_memory_buffer_;
655 } 645 }
656 646
657 gfx::GpuMemoryBuffer* InProcessCommandBuffer::CreateGpuMemoryBuffer( 647 gfx::GpuMemoryBuffer* InProcessCommandBuffer::CreateGpuMemoryBuffer(
658 size_t width, 648 size_t width,
659 size_t height, 649 size_t height,
660 unsigned internalformat, 650 unsigned internalformat,
661 int32* id) { 651 int32* id) {
662 CheckSequencedThread(); 652 CheckSequencedThread();
(...skipping 13 matching lines...) Expand all
676 QueueTask(task); 666 QueueTask(task);
677 } 667 }
678 668
679 bool InProcessCommandBuffer::GenerateMailboxNames( 669 bool InProcessCommandBuffer::GenerateMailboxNames(
680 unsigned num, std::vector<gpu::Mailbox>* names) { 670 unsigned num, std::vector<gpu::Mailbox>* names) {
681 CheckSequencedThread(); 671 CheckSequencedThread();
682 base::AutoLock lock(command_buffer_lock_); 672 base::AutoLock lock(command_buffer_lock_);
683 return gpu_control_->GenerateMailboxNames(num, names); 673 return gpu_control_->GenerateMailboxNames(num, names);
684 } 674 }
685 675
676 uint32 InProcessCommandBuffer::InsertSyncPoint() {
677 NOTREACHED();
678 return 0;
679 }
680
681 void InProcessCommandBuffer::SignalSyncPoint(unsigned sync_point,
682 const base::Closure& callback) {
683 CheckSequencedThread();
684 QueueTask(WrapCallback(callback));
685 }
686
686 gpu::error::Error InProcessCommandBuffer::GetLastError() { 687 gpu::error::Error InProcessCommandBuffer::GetLastError() {
687 CheckSequencedThread(); 688 CheckSequencedThread();
688 return last_state_.error; 689 return last_state_.error;
689 } 690 }
690 691
691 bool InProcessCommandBuffer::Initialize() { 692 bool InProcessCommandBuffer::Initialize() {
692 NOTREACHED(); 693 NOTREACHED();
693 return false; 694 return false;
694 } 695 }
695 696
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 g_gpu_queue.Get().RunTasks(); 765 g_gpu_queue.Get().RunTasks();
765 } 766 }
766 767
767 // static 768 // static
768 void InProcessCommandBuffer::SetGpuMemoryBufferFactory( 769 void InProcessCommandBuffer::SetGpuMemoryBufferFactory(
769 GpuMemoryBufferFactory* factory) { 770 GpuMemoryBufferFactory* factory) {
770 g_gpu_memory_buffer_factory = factory; 771 g_gpu_memory_buffer_factory = factory;
771 } 772 }
772 773
773 } // namespace gpu 774 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698