Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1560523002: Use EGL_ANGLE_surface_orientation in Chrome to avoid a blit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/ipc/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 3122 matching lines...) Expand 10 before | Expand all | Expand 10 after
3133 3133
3134 #if defined(OS_MACOSX) 3134 #if defined(OS_MACOSX)
3135 // This is unconditionally true on mac, no need to test for it at runtime. 3135 // This is unconditionally true on mac, no need to test for it at runtime.
3136 caps.iosurface = true; 3136 caps.iosurface = true;
3137 #endif 3137 #endif
3138 3138
3139 caps.post_sub_buffer = supports_post_sub_buffer_; 3139 caps.post_sub_buffer = supports_post_sub_buffer_;
3140 caps.commit_overlay_planes = supports_commit_overlay_planes_; 3140 caps.commit_overlay_planes = supports_commit_overlay_planes_;
3141 caps.image = true; 3141 caps.image = true;
3142 caps.surfaceless = surfaceless_; 3142 caps.surfaceless = surfaceless_;
3143 bool is_offscreen = !!offscreen_target_frame_buffer_.get();
3144 caps.flips_vertically = !is_offscreen && surface_->FlipsVertically();
3143 3145
3144 caps.blend_equation_advanced = 3146 caps.blend_equation_advanced =
3145 feature_info_->feature_flags().blend_equation_advanced; 3147 feature_info_->feature_flags().blend_equation_advanced;
3146 caps.blend_equation_advanced_coherent = 3148 caps.blend_equation_advanced_coherent =
3147 feature_info_->feature_flags().blend_equation_advanced_coherent; 3149 feature_info_->feature_flags().blend_equation_advanced_coherent;
3148 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg; 3150 caps.texture_rg = feature_info_->feature_flags().ext_texture_rg;
3149 caps.image_ycbcr_422 = 3151 caps.image_ycbcr_422 =
3150 feature_info_->feature_flags().chromium_image_ycbcr_422; 3152 feature_info_->feature_flags().chromium_image_ycbcr_422;
3151 caps.max_copy_texture_chromium_size = 3153 caps.max_copy_texture_chromium_size =
3152 feature_info_->workarounds().max_copy_texture_chromium_size; 3154 feature_info_->workarounds().max_copy_texture_chromium_size;
(...skipping 12609 matching lines...) Expand 10 before | Expand all | Expand 10 after
15762 return error::kNoError; 15764 return error::kNoError;
15763 } 15765 }
15764 15766
15765 // Include the auto-generated part of this file. We split this because it means 15767 // Include the auto-generated part of this file. We split this because it means
15766 // we can easily edit the non-auto generated parts right here in this file 15768 // we can easily edit the non-auto generated parts right here in this file
15767 // instead of having to edit some template or the code generator. 15769 // instead of having to edit some template or the code generator.
15768 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 15770 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
15769 15771
15770 } // namespace gles2 15772 } // namespace gles2
15771 } // namespace gpu 15773 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | gpu/ipc/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698