| 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 3237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3248 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; | 3248 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; |
| 3249 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; | 3249 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; |
| 3250 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; | 3250 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; |
| 3251 caps.discard_framebuffer = | 3251 caps.discard_framebuffer = |
| 3252 feature_info_->feature_flags().ext_discard_framebuffer; | 3252 feature_info_->feature_flags().ext_discard_framebuffer; |
| 3253 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; | 3253 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; |
| 3254 | 3254 |
| 3255 #if defined(OS_MACOSX) | 3255 #if defined(OS_MACOSX) |
| 3256 // This is unconditionally true on mac, no need to test for it at runtime. | 3256 // This is unconditionally true on mac, no need to test for it at runtime. |
| 3257 caps.iosurface = true; | 3257 caps.iosurface = true; |
| 3258 caps.chromium_image_rgb_emulation = true; |
| 3258 #endif | 3259 #endif |
| 3259 | 3260 |
| 3260 caps.post_sub_buffer = supports_post_sub_buffer_; | 3261 caps.post_sub_buffer = supports_post_sub_buffer_; |
| 3261 caps.commit_overlay_planes = supports_commit_overlay_planes_; | 3262 caps.commit_overlay_planes = supports_commit_overlay_planes_; |
| 3262 caps.image = true; | 3263 caps.image = true; |
| 3263 caps.surfaceless = surfaceless_; | 3264 caps.surfaceless = surfaceless_; |
| 3264 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); | 3265 bool is_offscreen = !!offscreen_target_frame_buffer_.get(); |
| 3265 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); | 3266 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically(); |
| 3266 caps.msaa_is_slow = feature_info_->workarounds().msaa_is_slow; | 3267 caps.msaa_is_slow = feature_info_->workarounds().msaa_is_slow; |
| 3267 | 3268 |
| (...skipping 13224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16492 } | 16493 } |
| 16493 | 16494 |
| 16494 // Include the auto-generated part of this file. We split this because it means | 16495 // 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 | 16496 // 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. | 16497 // instead of having to edit some template or the code generator. |
| 16497 #include "base/macros.h" | 16498 #include "base/macros.h" |
| 16498 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 16499 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 16499 | 16500 |
| 16500 } // namespace gles2 | 16501 } // namespace gles2 |
| 16501 } // namespace gpu | 16502 } // namespace gpu |
| OLD | NEW |