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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 << "cube texture size is too small (" | 423 << "cube texture size is too small (" |
424 << max_cube_map_texture_size << ", should be " | 424 << max_cube_map_texture_size << ", should be " |
425 << kES3MinCubeMapSize << ")."; | 425 << kES3MinCubeMapSize << ")."; |
426 return false; | 426 return false; |
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_, max_varying_vectors_, | 433 new ProgramManager(program_cache_, |
434 max_dual_source_draw_buffers_, gpu_preferences_, | 434 max_varying_vectors_, |
| 435 max_draw_buffers_, |
| 436 max_dual_source_draw_buffers_, |
| 437 gpu_preferences_, |
435 feature_info_.get())); | 438 feature_info_.get())); |
436 | 439 |
437 if (!texture_manager_->Initialize()) { | 440 if (!texture_manager_->Initialize()) { |
438 DLOG(ERROR) << "Context::Group::Initialize failed because texture manager " | 441 DLOG(ERROR) << "Context::Group::Initialize failed because texture manager " |
439 << "failed to initialize."; | 442 << "failed to initialize."; |
440 return false; | 443 return false; |
441 } | 444 } |
442 | 445 |
443 decoders_.push_back(base::AsWeakPtr<GLES2Decoder>(decoder)); | 446 decoders_.push_back(base::AsWeakPtr<GLES2Decoder>(decoder)); |
444 return true; | 447 return true; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 GLuint client_id, GLuint* service_id) const { | 597 GLuint client_id, GLuint* service_id) const { |
595 Buffer* buffer = buffer_manager_->GetBuffer(client_id); | 598 Buffer* buffer = buffer_manager_->GetBuffer(client_id); |
596 if (!buffer) | 599 if (!buffer) |
597 return false; | 600 return false; |
598 *service_id = buffer->service_id(); | 601 *service_id = buffer->service_id(); |
599 return true; | 602 return true; |
600 } | 603 } |
601 | 604 |
602 } // namespace gles2 | 605 } // namespace gles2 |
603 } // namespace gpu | 606 } // namespace gpu |
OLD | NEW |