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 <limits.h> | 7 #include <limits.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <stdio.h> | 10 #include <stdio.h> |
(...skipping 3266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3277 caps.image_ycbcr_420v = | 3277 caps.image_ycbcr_420v = |
3278 feature_info_->feature_flags().chromium_image_ycbcr_420v; | 3278 feature_info_->feature_flags().chromium_image_ycbcr_420v; |
3279 caps.max_copy_texture_chromium_size = | 3279 caps.max_copy_texture_chromium_size = |
3280 feature_info_->workarounds().max_copy_texture_chromium_size; | 3280 feature_info_->workarounds().max_copy_texture_chromium_size; |
3281 caps.render_buffer_format_bgra8888 = | 3281 caps.render_buffer_format_bgra8888 = |
3282 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 3282 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
3283 caps.occlusion_query_boolean = | 3283 caps.occlusion_query_boolean = |
3284 feature_info_->feature_flags().occlusion_query_boolean; | 3284 feature_info_->feature_flags().occlusion_query_boolean; |
3285 caps.timer_queries = | 3285 caps.timer_queries = |
3286 query_manager_->GPUTimingAvailable(); | 3286 query_manager_->GPUTimingAvailable(); |
| 3287 |
| 3288 caps.multisampled_render_to_texture = |
| 3289 feature_info_->feature_flags().multisampled_render_to_texture; |
| 3290 caps.chromium_framebuffer_mixed_samples = |
| 3291 feature_info_->feature_flags().chromium_framebuffer_mixed_samples; |
3287 return caps; | 3292 return caps; |
3288 } | 3293 } |
3289 | 3294 |
3290 void GLES2DecoderImpl::UpdateCapabilities() { | 3295 void GLES2DecoderImpl::UpdateCapabilities() { |
3291 util_.set_num_compressed_texture_formats( | 3296 util_.set_num_compressed_texture_formats( |
3292 validators_->compressed_texture_format.GetValues().size()); | 3297 validators_->compressed_texture_format.GetValues().size()); |
3293 util_.set_num_shader_binary_formats( | 3298 util_.set_num_shader_binary_formats( |
3294 validators_->shader_binary_format.GetValues().size()); | 3299 validators_->shader_binary_format.GetValues().size()); |
3295 } | 3300 } |
3296 | 3301 |
(...skipping 13195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16492 } | 16497 } |
16493 | 16498 |
16494 // Include the auto-generated part of this file. We split this because it means | 16499 // Include the auto-generated part of this file. We split this because it means |
16495 // we can easily edit the non-auto generated parts right here in this file | 16500 // we can easily edit the non-auto generated parts right here in this file |
16496 // instead of having to edit some template or the code generator. | 16501 // instead of having to edit some template or the code generator. |
16497 #include "base/macros.h" | 16502 #include "base/macros.h" |
16498 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16503 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
16499 | 16504 |
16500 } // namespace gles2 | 16505 } // namespace gles2 |
16501 } // namespace gpu | 16506 } // namespace gpu |
OLD | NEW |