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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 } | 427 } |
428 } | 428 } |
429 | 429 |
430 path_manager_.reset(new PathManager()); | 430 path_manager_.reset(new PathManager()); |
431 | 431 |
432 program_manager_.reset( | 432 program_manager_.reset( |
433 new ProgramManager(program_cache_, | 433 new ProgramManager(program_cache_, |
434 max_varying_vectors_, | 434 max_varying_vectors_, |
435 max_draw_buffers_, | 435 max_draw_buffers_, |
436 max_dual_source_draw_buffers_, | 436 max_dual_source_draw_buffers_, |
| 437 max_vertex_attribs_, |
437 gpu_preferences_, | 438 gpu_preferences_, |
438 feature_info_.get())); | 439 feature_info_.get())); |
439 | 440 |
440 if (!texture_manager_->Initialize()) { | 441 if (!texture_manager_->Initialize()) { |
441 DLOG(ERROR) << "Context::Group::Initialize failed because texture manager " | 442 DLOG(ERROR) << "Context::Group::Initialize failed because texture manager " |
442 << "failed to initialize."; | 443 << "failed to initialize."; |
443 return false; | 444 return false; |
444 } | 445 } |
445 | 446 |
446 decoders_.push_back(base::AsWeakPtr<GLES2Decoder>(decoder)); | 447 decoders_.push_back(base::AsWeakPtr<GLES2Decoder>(decoder)); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 GLuint client_id, GLuint* service_id) const { | 598 GLuint client_id, GLuint* service_id) const { |
598 Buffer* buffer = buffer_manager_->GetBuffer(client_id); | 599 Buffer* buffer = buffer_manager_->GetBuffer(client_id); |
599 if (!buffer) | 600 if (!buffer) |
600 return false; | 601 return false; |
601 *service_id = buffer->service_id(); | 602 *service_id = buffer->service_id(); |
602 return true; | 603 return true; |
603 } | 604 } |
604 | 605 |
605 } // namespace gles2 | 606 } // namespace gles2 |
606 } // namespace gpu | 607 } // namespace gpu |
OLD | NEW |