| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |