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

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

Issue 846943002: Improve BindBufferBase/BindBufferRange and a few other commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/context_group.h" 5 #include "gpu/command_buffer/service/context_group.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 bool ContextGroup::QueryGLFeatureU( 402 bool ContextGroup::QueryGLFeatureU(
403 GLenum pname, GLint min_required, uint32* v) { 403 GLenum pname, GLint min_required, uint32* v) {
404 uint32 value = 0; 404 uint32 value = 0;
405 GetIntegerv(pname, &value); 405 GetIntegerv(pname, &value);
406 bool result = CheckGLFeatureU(min_required, &value); 406 bool result = CheckGLFeatureU(min_required, &value);
407 *v = value; 407 *v = value;
408 return result; 408 return result;
409 } 409 }
410 410
411 bool ContextGroup::GetBufferServiceId(
412 GLuint client_id, GLuint* service_id) const {
413 Buffer* buffer = buffer_manager_->GetBuffer(client_id);
414 if (!buffer)
415 return false;
416 *service_id = buffer->service_id();
417 return true;
418 }
419
411 } // namespace gles2 420 } // namespace gles2
412 } // namespace gpu 421 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698