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

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

Issue 916083002: Add support for compressed GPU memory buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ozone Created 5 years, 10 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/service/feature_info.cc ('k') | gpu/command_buffer/service/image_factory.cc » ('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 <list> 10 #include <list>
(...skipping 2840 matching lines...) Expand 10 before | Expand all | Expand 10 after
2851 DoGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, 2851 DoGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,
2852 &caps.max_transform_feedback_separate_attribs); 2852 &caps.max_transform_feedback_separate_attribs);
2853 DoGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS, 2853 DoGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS,
2854 &caps.max_uniform_buffer_bindings); 2854 &caps.max_uniform_buffer_bindings);
2855 DoGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, 2855 DoGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT,
2856 &caps.uniform_buffer_offset_alignment); 2856 &caps.uniform_buffer_offset_alignment);
2857 } 2857 }
2858 2858
2859 caps.egl_image_external = 2859 caps.egl_image_external =
2860 feature_info_->feature_flags().oes_egl_image_external; 2860 feature_info_->feature_flags().oes_egl_image_external;
2861 caps.texture_format_atc =
2862 feature_info_->feature_flags().ext_texture_format_atc;
2861 caps.texture_format_bgra8888 = 2863 caps.texture_format_bgra8888 =
2862 feature_info_->feature_flags().ext_texture_format_bgra8888; 2864 feature_info_->feature_flags().ext_texture_format_bgra8888;
2865 caps.texture_format_dxt1 =
2866 feature_info_->feature_flags().ext_texture_format_dxt1;
2867 caps.texture_format_dxt5 =
2868 feature_info_->feature_flags().ext_texture_format_dxt5;
2863 caps.texture_format_etc1 = 2869 caps.texture_format_etc1 =
2864 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; 2870 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture;
2865 caps.texture_format_etc1_npot = 2871 caps.texture_format_etc1_npot =
2866 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; 2872 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only;
2867 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; 2873 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle;
2868 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; 2874 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage;
2869 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; 2875 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage;
2870 caps.discard_framebuffer = 2876 caps.discard_framebuffer =
2871 feature_info_->feature_flags().ext_discard_framebuffer; 2877 feature_info_->feature_flags().ext_discard_framebuffer;
2872 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; 2878 caps.sync_query = feature_info_->feature_flags().chromium_sync_query;
(...skipping 9248 matching lines...) Expand 10 before | Expand all | Expand 10 after
12121 } 12127 }
12122 } 12128 }
12123 12129
12124 // Include the auto-generated part of this file. We split this because it means 12130 // Include the auto-generated part of this file. We split this because it means
12125 // we can easily edit the non-auto generated parts right here in this file 12131 // we can easily edit the non-auto generated parts right here in this file
12126 // instead of having to edit some template or the code generator. 12132 // instead of having to edit some template or the code generator.
12127 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 12133 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
12128 12134
12129 } // namespace gles2 12135 } // namespace gles2
12130 } // namespace gpu 12136 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698