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

Side by Side Diff: gpu/command_buffer/service/gpu_control_service.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/gpu_control_service.h" 5 #include "gpu/command_buffer/service/gpu_control_service.h"
6 6
7 #include "gpu/command_buffer/client/gpu_memory_buffer_factory.h" 7 #include "gpu/command_buffer/client/gpu_memory_buffer_factory.h"
8 #include "gpu/command_buffer/service/gpu_memory_buffer_manager.h" 8 #include "gpu/command_buffer/service/gpu_memory_buffer_manager.h"
9 #include "gpu/command_buffer/service/mailbox_manager.h" 9 #include "gpu/command_buffer/service/mailbox_manager.h"
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 void GpuControlService::DestroyGpuMemoryBuffer(int32 id) { 60 void GpuControlService::DestroyGpuMemoryBuffer(int32 id) {
61 GpuMemoryBufferMap::iterator it = gpu_memory_buffers_.find(id); 61 GpuMemoryBufferMap::iterator it = gpu_memory_buffers_.find(id);
62 if (it != gpu_memory_buffers_.end()) 62 if (it != gpu_memory_buffers_.end())
63 gpu_memory_buffers_.erase(it); 63 gpu_memory_buffers_.erase(it);
64 64
65 gpu_memory_buffer_manager_->DestroyGpuMemoryBuffer(id); 65 gpu_memory_buffer_manager_->DestroyGpuMemoryBuffer(id);
66 } 66 }
67 67
68 uint32 GpuControlService::InsertSyncPoint() {
69 NOTREACHED();
70 return 0u;
71 }
72
73 void GpuControlService::SignalSyncPoint(uint32 sync_point,
74 const base::Closure& callback) {
75 NOTREACHED();
76 }
77
68 bool GpuControlService::RegisterGpuMemoryBuffer( 78 bool GpuControlService::RegisterGpuMemoryBuffer(
69 int32 id, 79 int32 id,
70 gfx::GpuMemoryBufferHandle buffer, 80 gfx::GpuMemoryBufferHandle buffer,
71 size_t width, 81 size_t width,
72 size_t height, 82 size_t height,
73 unsigned internalformat) { 83 unsigned internalformat) {
74 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id, 84 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id,
75 buffer, 85 buffer,
76 width, 86 width,
77 height, 87 height,
78 internalformat); 88 internalformat);
79 } 89 }
80 90
81 bool GpuControlService::GenerateMailboxNames( 91 bool GpuControlService::GenerateMailboxNames(
82 unsigned num, std::vector<gpu::Mailbox>* names) { 92 unsigned num, std::vector<gpu::Mailbox>* names) {
83 DCHECK(names->empty()); 93 DCHECK(names->empty());
84 names->resize(num); 94 names->resize(num);
85 for (unsigned i = 0; i < num; ++i) { 95 for (unsigned i = 0; i < num; ++i) {
86 gles2::MailboxName name; 96 gles2::MailboxName name;
87 mailbox_manager_->GenerateMailboxName(&name); 97 mailbox_manager_->GenerateMailboxName(&name);
88 (*names)[i].SetName(name.key); 98 (*names)[i].SetName(name.key);
89 } 99 }
90 return true; 100 return true;
91 } 101 }
92 102
93 } // namespace gpu 103 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_control_service.h ('k') | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698