| 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 3540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3551 caps.image_ycbcr_420v = | 3551 caps.image_ycbcr_420v = |
| 3552 feature_info_->feature_flags().chromium_image_ycbcr_420v; | 3552 feature_info_->feature_flags().chromium_image_ycbcr_420v; |
| 3553 caps.max_copy_texture_chromium_size = | 3553 caps.max_copy_texture_chromium_size = |
| 3554 feature_info_->workarounds().max_copy_texture_chromium_size; | 3554 feature_info_->workarounds().max_copy_texture_chromium_size; |
| 3555 caps.render_buffer_format_bgra8888 = | 3555 caps.render_buffer_format_bgra8888 = |
| 3556 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 3556 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
| 3557 caps.occlusion_query_boolean = | 3557 caps.occlusion_query_boolean = |
| 3558 feature_info_->feature_flags().occlusion_query_boolean; | 3558 feature_info_->feature_flags().occlusion_query_boolean; |
| 3559 caps.timer_queries = | 3559 caps.timer_queries = |
| 3560 query_manager_->GPUTimingAvailable(); | 3560 query_manager_->GPUTimingAvailable(); |
| 3561 caps.disable_webgl_multisampling_color_mask_usage = | 3561 caps.disable_multisampling_color_mask_usage = |
| 3562 feature_info_->workarounds().disable_webgl_multisampling_color_mask_usage; | 3562 feature_info_->workarounds().disable_multisampling_color_mask_usage; |
| 3563 caps.disable_webgl_rgb_multisampling_usage = | 3563 caps.disable_webgl_rgb_multisampling_usage = |
| 3564 feature_info_->workarounds().disable_webgl_rgb_multisampling_usage; | 3564 feature_info_->workarounds().disable_webgl_rgb_multisampling_usage; |
| 3565 caps.emulate_rgb_buffer_with_rgba = | 3565 caps.emulate_rgb_buffer_with_rgba = |
| 3566 feature_info_->workarounds().disable_gl_rgb_format; | 3566 feature_info_->workarounds().disable_gl_rgb_format; |
| 3567 | 3567 |
| 3568 return caps; | 3568 return caps; |
| 3569 } | 3569 } |
| 3570 | 3570 |
| 3571 void GLES2DecoderImpl::UpdateCapabilities() { | 3571 void GLES2DecoderImpl::UpdateCapabilities() { |
| 3572 util_.set_num_compressed_texture_formats( | 3572 util_.set_num_compressed_texture_formats( |
| (...skipping 13515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17088 } | 17088 } |
| 17089 | 17089 |
| 17090 // Include the auto-generated part of this file. We split this because it means | 17090 // Include the auto-generated part of this file. We split this because it means |
| 17091 // we can easily edit the non-auto generated parts right here in this file | 17091 // we can easily edit the non-auto generated parts right here in this file |
| 17092 // instead of having to edit some template or the code generator. | 17092 // instead of having to edit some template or the code generator. |
| 17093 #include "base/macros.h" | 17093 #include "base/macros.h" |
| 17094 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 17094 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 17095 | 17095 |
| 17096 } // namespace gles2 | 17096 } // namespace gles2 |
| 17097 } // namespace gpu | 17097 } // namespace gpu |
| OLD | NEW |