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

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

Issue 10381137: Don't enable occlusion query on Linux with Intel drivers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | 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 <string> 8 #include <string>
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 10 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
(...skipping 17 matching lines...) Expand all
28 enable_texture_float_linear(false), 28 enable_texture_float_linear(false),
29 enable_texture_half_float_linear(false), 29 enable_texture_half_float_linear(false),
30 chromium_webglsl(false), 30 chromium_webglsl(false),
31 chromium_stream_texture(false), 31 chromium_stream_texture(false),
32 angle_translated_shader_source(false), 32 angle_translated_shader_source(false),
33 angle_pack_reverse_row_order(false), 33 angle_pack_reverse_row_order(false),
34 arb_texture_rectangle(false), 34 arb_texture_rectangle(false),
35 angle_instanced_arrays(false), 35 angle_instanced_arrays(false),
36 occlusion_query_boolean(false), 36 occlusion_query_boolean(false),
37 use_arb_occlusion_query2_for_occlusion_query_boolean(false), 37 use_arb_occlusion_query2_for_occlusion_query_boolean(false),
38 use_arb_occlusion_query_for_occlusion_query_boolean(false) { 38 use_arb_occlusion_query_for_occlusion_query_boolean(false),
39 is_intel(false),
40 is_nvidia(false),
41 is_amd(false) {
39 } 42 }
40 43
41 bool chromium_framebuffer_multisample; 44 bool chromium_framebuffer_multisample;
42 bool oes_standard_derivatives; 45 bool oes_standard_derivatives;
43 bool oes_egl_image_external; 46 bool oes_egl_image_external;
44 bool npot_ok; 47 bool npot_ok;
45 bool enable_texture_float_linear; 48 bool enable_texture_float_linear;
46 bool enable_texture_half_float_linear; 49 bool enable_texture_half_float_linear;
47 bool chromium_webglsl; 50 bool chromium_webglsl;
48 bool chromium_stream_texture; 51 bool chromium_stream_texture;
49 bool angle_translated_shader_source; 52 bool angle_translated_shader_source;
50 bool angle_pack_reverse_row_order; 53 bool angle_pack_reverse_row_order;
51 bool arb_texture_rectangle; 54 bool arb_texture_rectangle;
52 bool angle_instanced_arrays; 55 bool angle_instanced_arrays;
53 bool occlusion_query_boolean; 56 bool occlusion_query_boolean;
54 bool use_arb_occlusion_query2_for_occlusion_query_boolean; 57 bool use_arb_occlusion_query2_for_occlusion_query_boolean;
55 bool use_arb_occlusion_query_for_occlusion_query_boolean; 58 bool use_arb_occlusion_query_for_occlusion_query_boolean;
59 bool is_intel;
60 bool is_nvidia;
61 bool is_amd;
56 }; 62 };
57 63
58 FeatureInfo(); 64 FeatureInfo();
59 ~FeatureInfo(); 65 ~FeatureInfo();
60 66
61 // If allowed features = NULL or "*", all features are allowed. Otherwise 67 // If allowed features = NULL or "*", all features are allowed. Otherwise
62 // only features that match the strings in allowed_features are allowed. 68 // only features that match the strings in allowed_features are allowed.
63 bool Initialize(const char* allowed_features); 69 bool Initialize(const char* allowed_features);
64 bool Initialize(const DisallowedFeatures& disallowed_features, 70 bool Initialize(const DisallowedFeatures& disallowed_features,
65 const char* allowed_features); 71 const char* allowed_features);
(...skipping 29 matching lines...) Expand all
95 101
96 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 102 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
97 }; 103 };
98 104
99 } // namespace gles2 105 } // namespace gles2
100 } // namespace gpu 106 } // namespace gpu
101 107
102 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 108 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
103 109
104 110
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/feature_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698