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

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: Add ATC and DXT feature detection and checking 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
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 2835 matching lines...) Expand 10 before | Expand all | Expand 10 after
2846 DoGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, 2846 DoGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS,
2847 &caps.max_transform_feedback_separate_attribs); 2847 &caps.max_transform_feedback_separate_attribs);
2848 DoGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS, 2848 DoGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS,
2849 &caps.max_uniform_buffer_bindings); 2849 &caps.max_uniform_buffer_bindings);
2850 DoGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, 2850 DoGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT,
2851 &caps.uniform_buffer_offset_alignment); 2851 &caps.uniform_buffer_offset_alignment);
2852 } 2852 }
2853 2853
2854 caps.egl_image_external = 2854 caps.egl_image_external =
2855 feature_info_->feature_flags().oes_egl_image_external; 2855 feature_info_->feature_flags().oes_egl_image_external;
2856 caps.texture_format_atc =
2857 feature_info_->feature_flags().ext_texture_format_atc;
2856 caps.texture_format_bgra8888 = 2858 caps.texture_format_bgra8888 =
2857 feature_info_->feature_flags().ext_texture_format_bgra8888; 2859 feature_info_->feature_flags().ext_texture_format_bgra8888;
2860 caps.texture_format_dxt1 =
2861 feature_info_->feature_flags().ext_texture_format_dxt1;
2862 caps.texture_format_dxt5 =
2863 feature_info_->feature_flags().ext_texture_format_dxt5;
2858 caps.texture_format_etc1 = 2864 caps.texture_format_etc1 =
2859 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture; 2865 feature_info_->feature_flags().oes_compressed_etc1_rgb8_texture;
2860 caps.texture_format_etc1_npot = 2866 caps.texture_format_etc1_npot =
2861 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only; 2867 caps.texture_format_etc1 && !workarounds().etc1_power_of_two_only;
2862 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle; 2868 caps.texture_rectangle = feature_info_->feature_flags().arb_texture_rectangle;
2863 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage; 2869 caps.texture_usage = feature_info_->feature_flags().angle_texture_usage;
2864 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; 2870 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage;
2865 caps.discard_framebuffer = 2871 caps.discard_framebuffer =
2866 feature_info_->feature_flags().ext_discard_framebuffer; 2872 feature_info_->feature_flags().ext_discard_framebuffer;
2867 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; 2873 caps.sync_query = feature_info_->feature_flags().chromium_sync_query;
(...skipping 8996 matching lines...) Expand 10 before | Expand all | Expand 10 after
11864 } 11870 }
11865 } 11871 }
11866 11872
11867 // Include the auto-generated part of this file. We split this because it means 11873 // Include the auto-generated part of this file. We split this because it means
11868 // we can easily edit the non-auto generated parts right here in this file 11874 // we can easily edit the non-auto generated parts right here in this file
11869 // instead of having to edit some template or the code generator. 11875 // instead of having to edit some template or the code generator.
11870 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 11876 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
11871 11877
11872 } // namespace gles2 11878 } // namespace gles2
11873 } // namespace gpu 11879 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698