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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 caps.image_ycbcr_422 = | 365 caps.image_ycbcr_422 = |
366 feature_info_->feature_flags().chromium_image_ycbcr_422; | 366 feature_info_->feature_flags().chromium_image_ycbcr_422; |
367 caps.image_ycbcr_420v = | 367 caps.image_ycbcr_420v = |
368 feature_info_->feature_flags().chromium_image_ycbcr_420v; | 368 feature_info_->feature_flags().chromium_image_ycbcr_420v; |
369 caps.max_copy_texture_chromium_size = | 369 caps.max_copy_texture_chromium_size = |
370 feature_info_->workarounds().max_copy_texture_chromium_size; | 370 feature_info_->workarounds().max_copy_texture_chromium_size; |
371 caps.render_buffer_format_bgra8888 = | 371 caps.render_buffer_format_bgra8888 = |
372 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; | 372 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; |
373 caps.occlusion_query_boolean = | 373 caps.occlusion_query_boolean = |
374 feature_info_->feature_flags().occlusion_query_boolean; | 374 feature_info_->feature_flags().occlusion_query_boolean; |
| 375 caps.timer_queries = feature_info_->feature_flags().ext_disjoint_timer_query; |
| 376 caps.post_sub_buffer = surface_->SupportsPostSubBuffer(); |
| 377 caps.surfaceless = !offscreen_ && surface_->IsSurfaceless(); |
| 378 caps.flips_vertically = !offscreen_ && surface_->FlipsVertically(); |
375 | 379 |
376 // TODO: | 380 // TODO: |
377 // caps.timer_queries | |
378 // caps.post_sub_buffer | |
379 // caps.commit_overlay_planes | 381 // caps.commit_overlay_planes |
380 // caps.surfaceless | |
381 // caps.is_offscreen | |
382 // caps.flips_vertically | |
383 | 382 |
384 return caps; | 383 return caps; |
385 } | 384 } |
386 | 385 |
387 void GLES2DecoderPassthroughImpl::RestoreState(const ContextState* prev_state) { | 386 void GLES2DecoderPassthroughImpl::RestoreState(const ContextState* prev_state) { |
388 | 387 |
389 } | 388 } |
390 | 389 |
391 void GLES2DecoderPassthroughImpl::RestoreActiveTexture() const {} | 390 void GLES2DecoderPassthroughImpl::RestoreActiveTexture() const {} |
392 | 391 |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 }, /* NOLINT */ | 907 }, /* NOLINT */ |
909 | 908 |
910 const GLES2DecoderPassthroughImpl::CommandInfo | 909 const GLES2DecoderPassthroughImpl::CommandInfo |
911 GLES2DecoderPassthroughImpl::command_info[] = { | 910 GLES2DecoderPassthroughImpl::command_info[] = { |
912 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; | 911 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; |
913 | 912 |
914 #undef GLES2_CMD_OP | 913 #undef GLES2_CMD_OP |
915 | 914 |
916 } // namespace gles2 | 915 } // namespace gles2 |
917 } // namespace gpu | 916 } // namespace gpu |
OLD | NEW |