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

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

Issue 165393003: gpu: Generate mailboxes on client side (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 void InProcessCommandBuffer::DestroyGpuMemoryBuffer(int32 id) { 545 void InProcessCommandBuffer::DestroyGpuMemoryBuffer(int32 id) {
546 CheckSequencedThread(); 546 CheckSequencedThread();
547 base::Closure task = base::Bind(&GpuControl::DestroyGpuMemoryBuffer, 547 base::Closure task = base::Bind(&GpuControl::DestroyGpuMemoryBuffer,
548 base::Unretained(gpu_control_.get()), 548 base::Unretained(gpu_control_.get()),
549 id); 549 id);
550 550
551 QueueTask(task); 551 QueueTask(task);
552 } 552 }
553 553
554 bool InProcessCommandBuffer::GenerateMailboxNames(
555 unsigned num, std::vector<gpu::Mailbox>* names) {
556 CheckSequencedThread();
557 base::AutoLock lock(command_buffer_lock_);
558 return gpu_control_->GenerateMailboxNames(num, names);
559 }
560
561 uint32 InProcessCommandBuffer::InsertSyncPoint() { 554 uint32 InProcessCommandBuffer::InsertSyncPoint() {
562 return 0; 555 return 0;
563 } 556 }
564 557
565 void InProcessCommandBuffer::SignalSyncPoint(unsigned sync_point, 558 void InProcessCommandBuffer::SignalSyncPoint(unsigned sync_point,
566 const base::Closure& callback) { 559 const base::Closure& callback) {
567 CheckSequencedThread(); 560 CheckSequencedThread();
568 QueueTask(WrapCallback(callback)); 561 QueueTask(WrapCallback(callback));
569 } 562 }
570 563
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 } 665 }
673 #endif 666 #endif
674 667
675 // static 668 // static
676 void InProcessCommandBuffer::SetGpuMemoryBufferFactory( 669 void InProcessCommandBuffer::SetGpuMemoryBufferFactory(
677 GpuMemoryBufferFactory* factory) { 670 GpuMemoryBufferFactory* factory) {
678 g_gpu_memory_buffer_factory = factory; 671 g_gpu_memory_buffer_factory = factory;
679 } 672 }
680 673
681 } // namespace gpu 674 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698