OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_passthrough.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" |
6 | 6 |
7 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
8 #include "gpu/command_buffer/service/feature_info.h" | 8 #include "gpu/command_buffer/service/feature_info.h" |
9 #include "gpu/command_buffer/service/gl_utils.h" | 9 #include "gpu/command_buffer/service/gl_utils.h" |
10 #include "ui/gl/gl_version_info.h" | 10 #include "ui/gl/gl_version_info.h" |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 #if defined(OS_MACOSX) | 352 #if defined(OS_MACOSX) |
353 // This is unconditionally true on mac, no need to test for it at runtime. | 353 // This is unconditionally true on mac, no need to test for it at runtime. |
354 caps.iosurface = true; | 354 caps.iosurface = true; |
355 #endif | 355 #endif |
356 caps.flips_vertically = surface_->FlipsVertically(); | 356 caps.flips_vertically = surface_->FlipsVertically(); |
357 caps.blend_equation_advanced = | 357 caps.blend_equation_advanced = |
358 feature_info_->feature_flags().blend_equation_advanced; | 358 feature_info_->feature_flags().blend_equation_advanced; |
359 caps.blend_equation_advanced_coherent = | 359 caps.blend_equation_advanced_coherent = |
360 feature_info_->feature_flags().blend_equation_advanced_coherent; | 360 feature_info_->feature_flags().blend_equation_advanced_coherent; |
361 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; | 361 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; |
| 362 caps.texture_norm16 = feature_info_->feature_flags().ext_texture_norm16; |
362 caps.texture_half_float_linear = | 363 caps.texture_half_float_linear = |
363 feature_info_->feature_flags().enable_texture_half_float_linear; | 364 feature_info_->feature_flags().enable_texture_half_float_linear; |
364 caps.image_ycbcr_422 = | 365 caps.image_ycbcr_422 = |
365 feature_info_->feature_flags().chromium_image_ycbcr_422; | 366 feature_info_->feature_flags().chromium_image_ycbcr_422; |
366 caps.image_ycbcr_420v = | 367 caps.image_ycbcr_420v = |
367 feature_info_->feature_flags().chromium_image_ycbcr_420v; | 368 feature_info_->feature_flags().chromium_image_ycbcr_420v; |
368 caps.max_copy_texture_chromium_size = | 369 caps.max_copy_texture_chromium_size = |
369 feature_info_->workarounds().max_copy_texture_chromium_size; | 370 feature_info_->workarounds().max_copy_texture_chromium_size; |
370 caps.render_buffer_format_bgra8888 = | 371 caps.render_buffer_format_bgra8888 = |
371 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 372 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 }, /* NOLINT */ | 894 }, /* NOLINT */ |
894 | 895 |
895 const GLES2DecoderPassthroughImpl::CommandInfo | 896 const GLES2DecoderPassthroughImpl::CommandInfo |
896 GLES2DecoderPassthroughImpl::command_info[] = { | 897 GLES2DecoderPassthroughImpl::command_info[] = { |
897 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; | 898 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; |
898 | 899 |
899 #undef GLES2_CMD_OP | 900 #undef GLES2_CMD_OP |
900 | 901 |
901 } // namespace gles2 | 902 } // namespace gles2 |
902 } // namespace gpu | 903 } // namespace gpu |
OLD | NEW |