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

Side by Side Diff: gpu/command_buffer/service/feature_info.h

Issue 2689203002: Check for some extensions before calling potentially NULL GL entry points. (Closed)
Patch Set: Revert discard_framebuffer functional change Created 3 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 | « no previous file | gpu/command_buffer/service/feature_info.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 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool desktop_srgb_support = false; 95 bool desktop_srgb_support = false;
96 bool arb_es3_compatibility = false; 96 bool arb_es3_compatibility = false;
97 bool chromium_color_buffer_float_rgb = false; 97 bool chromium_color_buffer_float_rgb = false;
98 bool chromium_color_buffer_float_rgba = false; 98 bool chromium_color_buffer_float_rgba = false;
99 bool angle_robust_client_memory = false; 99 bool angle_robust_client_memory = false;
100 bool khr_debug = false; 100 bool khr_debug = false;
101 bool chromium_bind_generates_resource = false; 101 bool chromium_bind_generates_resource = false;
102 bool angle_webgl_compatibility = false; 102 bool angle_webgl_compatibility = false;
103 bool ext_srgb_write_control = false; 103 bool ext_srgb_write_control = false;
104 bool ext_srgb = false; 104 bool ext_srgb = false;
105 bool chromium_copy_texture = false;
106 bool chromium_copy_compressed_texture = false;
107 bool angle_framebuffer_multisample = false;
108 bool ext_disjoint_timer_query = false;
105 }; 109 };
106 110
107 FeatureInfo(); 111 FeatureInfo();
108 112
109 // Constructor with workarounds taken from the current process's CommandLine 113 // Constructor with workarounds taken from the current process's CommandLine
110 explicit FeatureInfo( 114 explicit FeatureInfo(
111 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); 115 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds);
112 116
113 // Constructor with workarounds taken from |command_line|. 117 // Constructor with workarounds taken from |command_line|.
114 FeatureInfo(const base::CommandLine& command_line, 118 FeatureInfo(const base::CommandLine& command_line,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool disable_shader_translator_; 209 bool disable_shader_translator_;
206 std::unique_ptr<gl::GLVersionInfo> gl_version_info_; 210 std::unique_ptr<gl::GLVersionInfo> gl_version_info_;
207 211
208 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 212 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
209 }; 213 };
210 214
211 } // namespace gles2 215 } // namespace gles2
212 } // namespace gpu 216 } // namespace gpu
213 217
214 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 218 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698