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

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

Issue 215803002: Remove CommandBuffer::GetTransferBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 579
580 void InProcessCommandBuffer::DestroyTransferBuffer(int32 id) { 580 void InProcessCommandBuffer::DestroyTransferBuffer(int32 id) {
581 CheckSequencedThread(); 581 CheckSequencedThread();
582 base::Closure task = base::Bind(&CommandBuffer::DestroyTransferBuffer, 582 base::Closure task = base::Bind(&CommandBuffer::DestroyTransferBuffer,
583 base::Unretained(command_buffer_.get()), 583 base::Unretained(command_buffer_.get()),
584 id); 584 id);
585 585
586 QueueTask(task); 586 QueueTask(task);
587 } 587 }
588 588
589 scoped_refptr<gpu::Buffer> InProcessCommandBuffer::GetTransferBuffer(int32 id) {
590 NOTREACHED();
591 return NULL;
592 }
593
594 gpu::Capabilities InProcessCommandBuffer::GetCapabilities() { 589 gpu::Capabilities InProcessCommandBuffer::GetCapabilities() {
595 return capabilities_; 590 return capabilities_;
596 } 591 }
597 592
598 gfx::GpuMemoryBuffer* InProcessCommandBuffer::CreateGpuMemoryBuffer( 593 gfx::GpuMemoryBuffer* InProcessCommandBuffer::CreateGpuMemoryBuffer(
599 size_t width, 594 size_t width,
600 size_t height, 595 size_t height,
601 unsigned internalformat, 596 unsigned internalformat,
602 int32* id) { 597 int32* id) {
603 CheckSequencedThread(); 598 CheckSequencedThread();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 gpu::error::Error InProcessCommandBuffer::GetLastError() { 696 gpu::error::Error InProcessCommandBuffer::GetLastError() {
702 CheckSequencedThread(); 697 CheckSequencedThread();
703 return last_state_.error; 698 return last_state_.error;
704 } 699 }
705 700
706 bool InProcessCommandBuffer::Initialize() { 701 bool InProcessCommandBuffer::Initialize() {
707 NOTREACHED(); 702 NOTREACHED();
708 return false; 703 return false;
709 } 704 }
710 705
711 void InProcessCommandBuffer::SetGetOffset(int32 get_offset) { NOTREACHED(); }
712
713 void InProcessCommandBuffer::SetToken(int32 token) { NOTREACHED(); }
714
715 void InProcessCommandBuffer::SetParseError(gpu::error::Error error) {
716 NOTREACHED();
717 }
718
719 void InProcessCommandBuffer::SetContextLostReason(
720 gpu::error::ContextLostReason reason) {
721 NOTREACHED();
722 }
723
724 namespace { 706 namespace {
725 707
726 void PostCallback(const scoped_refptr<base::MessageLoopProxy>& loop, 708 void PostCallback(const scoped_refptr<base::MessageLoopProxy>& loop,
727 const base::Closure& callback) { 709 const base::Closure& callback) {
728 if (!loop->BelongsToCurrentThread()) { 710 if (!loop->BelongsToCurrentThread()) {
729 loop->PostTask(FROM_HERE, callback); 711 loop->PostTask(FROM_HERE, callback);
730 } else { 712 } else {
731 callback.Run(); 713 callback.Run();
732 } 714 }
733 } 715 }
(...skipping 26 matching lines...) Expand all
760 } 742 }
761 #endif 743 #endif
762 744
763 // static 745 // static
764 void InProcessCommandBuffer::SetGpuMemoryBufferFactory( 746 void InProcessCommandBuffer::SetGpuMemoryBufferFactory(
765 GpuMemoryBufferFactory* factory) { 747 GpuMemoryBufferFactory* factory) {
766 g_gpu_memory_buffer_factory = factory; 748 g_gpu_memory_buffer_factory = factory;
767 } 749 }
768 750
769 } // namespace gpu 751 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | mojo/examples/pepper_container_app/graphics_3d_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698