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/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <list> | 10 #include <list> |
(...skipping 2012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2023 | 2023 |
2024 copy_texture_CHROMIUM_.reset(new CopyTextureCHROMIUMResourceManager()); | 2024 copy_texture_CHROMIUM_.reset(new CopyTextureCHROMIUMResourceManager()); |
2025 copy_texture_CHROMIUM_->Initialize(); | 2025 copy_texture_CHROMIUM_->Initialize(); |
2026 CHECK_GL_ERROR(); | 2026 CHECK_GL_ERROR(); |
2027 | 2027 |
2028 disallowed_features_ = disallowed_features; | 2028 disallowed_features_ = disallowed_features; |
2029 | 2029 |
2030 vertex_attrib_manager_.reset(new VertexAttribManager()); | 2030 vertex_attrib_manager_.reset(new VertexAttribManager()); |
2031 vertex_attrib_manager_->Initialize(group_->max_vertex_attribs()); | 2031 vertex_attrib_manager_->Initialize(group_->max_vertex_attribs()); |
2032 | 2032 |
2033 query_manager_.reset(new QueryManager(this, feature_info_->feature_flags( | 2033 query_manager_.reset(new QueryManager(this, feature_info_)); |
2034 ).use_arb_occlusion_query2_for_occlusion_query_boolean)); | |
2035 | 2034 |
2036 util_.set_num_compressed_texture_formats( | 2035 util_.set_num_compressed_texture_formats( |
2037 validators_->compressed_texture_format.GetValues().size()); | 2036 validators_->compressed_texture_format.GetValues().size()); |
2038 | 2037 |
2039 if (gfx::GetGLImplementation() != gfx::kGLImplementationEGLGLES2) { | 2038 if (gfx::GetGLImplementation() != gfx::kGLImplementationEGLGLES2) { |
2040 // We have to enable vertex array 0 on OpenGL or it won't render. Note that | 2039 // We have to enable vertex array 0 on OpenGL or it won't render. Note that |
2041 // OpenGL ES 2.0 does not have this issue. | 2040 // OpenGL ES 2.0 does not have this issue. |
2042 glEnableVertexAttribArray(0); | 2041 glEnableVertexAttribArray(0); |
2043 } | 2042 } |
2044 glGenBuffersARB(1, &attrib_0_buffer_id_); | 2043 glGenBuffersARB(1, &attrib_0_buffer_id_); |
(...skipping 6618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8663 BindAndApplyTextureParameters(info); | 8662 BindAndApplyTextureParameters(info); |
8664 } | 8663 } |
8665 | 8664 |
8666 // Include the auto-generated part of this file. We split this because it means | 8665 // Include the auto-generated part of this file. We split this because it means |
8667 // we can easily edit the non-auto generated parts right here in this file | 8666 // we can easily edit the non-auto generated parts right here in this file |
8668 // instead of having to edit some template or the code generator. | 8667 // instead of having to edit some template or the code generator. |
8669 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 8668 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
8670 | 8669 |
8671 } // namespace gles2 | 8670 } // namespace gles2 |
8672 } // namespace gpu | 8671 } // namespace gpu |
OLD | NEW |