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

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

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 6 years, 7 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 <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 } 600 }
601 601
602 gpu::Capabilities InProcessCommandBuffer::GetCapabilities() { 602 gpu::Capabilities InProcessCommandBuffer::GetCapabilities() {
603 return capabilities_; 603 return capabilities_;
604 } 604 }
605 605
606 gfx::GpuMemoryBuffer* InProcessCommandBuffer::CreateGpuMemoryBuffer( 606 gfx::GpuMemoryBuffer* InProcessCommandBuffer::CreateGpuMemoryBuffer(
607 size_t width, 607 size_t width,
608 size_t height, 608 size_t height,
609 unsigned internalformat, 609 unsigned internalformat,
610 unsigned usage,
610 int32* id) { 611 int32* id) {
611 CheckSequencedThread(); 612 CheckSequencedThread();
612 base::AutoLock lock(command_buffer_lock_); 613 base::AutoLock lock(command_buffer_lock_);
613 return gpu_control_->CreateGpuMemoryBuffer(width, 614 return gpu_control_->CreateGpuMemoryBuffer(
614 height, 615 width, height, internalformat, usage, id);
615 internalformat,
616 id);
617 } 616 }
618 617
619 void InProcessCommandBuffer::DestroyGpuMemoryBuffer(int32 id) { 618 void InProcessCommandBuffer::DestroyGpuMemoryBuffer(int32 id) {
620 CheckSequencedThread(); 619 CheckSequencedThread();
621 base::Closure task = base::Bind(&GpuControl::DestroyGpuMemoryBuffer, 620 base::Closure task = base::Bind(&GpuControl::DestroyGpuMemoryBuffer,
622 base::Unretained(gpu_control_.get()), 621 base::Unretained(gpu_control_.get()),
623 id); 622 id);
624 623
625 QueueTask(task); 624 QueueTask(task);
626 } 625 }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 } 754 }
756 #endif 755 #endif
757 756
758 // static 757 // static
759 void InProcessCommandBuffer::SetGpuMemoryBufferFactory( 758 void InProcessCommandBuffer::SetGpuMemoryBufferFactory(
760 GpuMemoryBufferFactory* factory) { 759 GpuMemoryBufferFactory* factory) {
761 g_gpu_memory_buffer_factory = factory; 760 g_gpu_memory_buffer_factory = factory;
762 } 761 }
763 762
764 } // namespace gpu 763 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698