| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 id_namespaces_[id_namespaces::kBuffers].reset(new IdAllocator); | 62 id_namespaces_[id_namespaces::kBuffers].reset(new IdAllocator); |
| 63 id_namespaces_[id_namespaces::kFramebuffers].reset(new IdAllocator); | 63 id_namespaces_[id_namespaces::kFramebuffers].reset(new IdAllocator); |
| 64 id_namespaces_[id_namespaces::kProgramsAndShaders].reset( | 64 id_namespaces_[id_namespaces::kProgramsAndShaders].reset( |
| 65 new NonReusedIdAllocator); | 65 new NonReusedIdAllocator); |
| 66 id_namespaces_[id_namespaces::kRenderbuffers].reset(new IdAllocator); | 66 id_namespaces_[id_namespaces::kRenderbuffers].reset(new IdAllocator); |
| 67 id_namespaces_[id_namespaces::kTextures].reset(new IdAllocator); | 67 id_namespaces_[id_namespaces::kTextures].reset(new IdAllocator); |
| 68 id_namespaces_[id_namespaces::kQueries].reset(new IdAllocator); | 68 id_namespaces_[id_namespaces::kQueries].reset(new IdAllocator); |
| 69 id_namespaces_[id_namespaces::kVertexArrays].reset(new IdAllocator); | 69 id_namespaces_[id_namespaces::kVertexArrays].reset(new IdAllocator); |
| 70 id_namespaces_[id_namespaces::kImages].reset(new IdAllocator); | |
| 71 } | 70 } |
| 72 | 71 |
| 73 static void GetIntegerv(GLenum pname, uint32* var) { | 72 static void GetIntegerv(GLenum pname, uint32* var) { |
| 74 GLint value = 0; | 73 GLint value = 0; |
| 75 glGetIntegerv(pname, &value); | 74 glGetIntegerv(pname, &value); |
| 76 *var = value; | 75 *var = value; |
| 77 } | 76 } |
| 78 | 77 |
| 79 bool ContextGroup::Initialize( | 78 bool ContextGroup::Initialize( |
| 80 GLES2Decoder* decoder, | 79 GLES2Decoder* decoder, |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 GLenum pname, GLint min_required, uint32* v) { | 377 GLenum pname, GLint min_required, uint32* v) { |
| 379 uint32 value = 0; | 378 uint32 value = 0; |
| 380 GetIntegerv(pname, &value); | 379 GetIntegerv(pname, &value); |
| 381 bool result = CheckGLFeatureU(min_required, &value); | 380 bool result = CheckGLFeatureU(min_required, &value); |
| 382 *v = value; | 381 *v = value; |
| 383 return result; | 382 return result; |
| 384 } | 383 } |
| 385 | 384 |
| 386 } // namespace gles2 | 385 } // namespace gles2 |
| 387 } // namespace gpu | 386 } // namespace gpu |
| OLD | NEW |