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

Side by Side Diff: gpu/command_buffer/service/gpu_control_service.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/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 #include "gpu/command_buffer/service/query_manager.h" 10 #include "gpu/command_buffer/service/query_manager.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 size_t width, 116 size_t width,
117 size_t height, 117 size_t height,
118 unsigned internalformat) { 118 unsigned internalformat) {
119 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id, 119 return gpu_memory_buffer_manager_->RegisterGpuMemoryBuffer(id,
120 buffer, 120 buffer,
121 width, 121 width,
122 height, 122 height,
123 internalformat); 123 internalformat);
124 } 124 }
125 125
126 bool GpuControlService::GenerateMailboxNames(
127 unsigned num, std::vector<gpu::Mailbox>* names) {
128 DCHECK(names->empty());
129 names->resize(num);
130 for (unsigned i = 0; i < num; ++i)
131 mailbox_manager_->GenerateMailbox(&(*names)[i]);
132 return true;
133 }
134
135 } // namespace gpu 126 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698