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

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

Issue 2061743004: Implement native GMB backbuffers in the GLES2 Command Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from piman. Created 4 years, 5 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 #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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 bool ext_read_format_bgra; 92 bool ext_read_format_bgra;
93 bool desktop_srgb_support; 93 bool desktop_srgb_support;
94 }; 94 };
95 95
96 FeatureInfo(); 96 FeatureInfo();
97 97
98 // Constructor with workarounds taken from the current process's CommandLine 98 // Constructor with workarounds taken from the current process's CommandLine
99 explicit FeatureInfo( 99 explicit FeatureInfo(
100 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); 100 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds);
101 101
102 // Constructor with workarounds taken from |command_line| 102 // Constructor with workarounds taken from |command_line|.
103 FeatureInfo(const base::CommandLine& command_line, 103 FeatureInfo(const base::CommandLine& command_line,
104 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds); 104 const GpuDriverBugWorkarounds& gpu_driver_bug_workarounds);
105 105
106 // Initializes the feature information. Needs a current GL context. 106 // Initializes the feature information. Needs a current GL context.
107 bool Initialize(ContextType context_type, 107 bool Initialize(ContextType context_type,
108 const DisallowedFeatures& disallowed_features); 108 const DisallowedFeatures& disallowed_features);
109 109
110 // Helper that defaults to no disallowed features and a GLES2 context. 110 // Helper that defaults to no disallowed features and a GLES2 context.
111 bool InitializeForTesting(); 111 bool InitializeForTesting();
112 // Helper that defaults to a GLES2 context. 112 // Helper that defaults to a GLES2 context.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Whether the command line switch kEnableCMAAShaders is passed in. 196 // Whether the command line switch kEnableCMAAShaders is passed in.
197 bool enable_cmaa_shaders_switch_; 197 bool enable_cmaa_shaders_switch_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 199 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
200 }; 200 };
201 201
202 } // namespace gles2 202 } // namespace gles2
203 } // namespace gpu 203 } // namespace gpu
204 204
205 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 205 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698