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

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

Issue 846943002: Improve BindBufferBase/BindBufferRange and a few other commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 const FeatureFlags& feature_flags() const { 117 const FeatureFlags& feature_flags() const {
118 return feature_flags_; 118 return feature_flags_;
119 } 119 }
120 120
121 const Workarounds& workarounds() const { 121 const Workarounds& workarounds() const {
122 return workarounds_; 122 return workarounds_;
123 } 123 }
124 124
125 const gfx::GLVersionInfo& gl_version_info() const { 125 const gfx::GLVersionInfo& gl_version_info() const {
126 CHECK(gl_version_info_.get()); 126 DCHECK(gl_version_info_.get());
127 return *(gl_version_info_.get()); 127 return *(gl_version_info_.get());
128 } 128 }
129 129
130 private: 130 private:
131 friend class base::RefCounted<FeatureInfo>; 131 friend class base::RefCounted<FeatureInfo>;
132 friend class BufferManagerClientSideArraysTest; 132 friend class BufferManagerClientSideArraysTest;
133 133
134 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap; 134 typedef base::hash_map<GLenum, ValueValidator<GLenum> > ValidatorMap;
135 ValidatorMap texture_format_validators_; 135 ValidatorMap texture_format_validators_;
136 136
(...skipping 18 matching lines...) Expand all
155 155
156 scoped_ptr<gfx::GLVersionInfo> gl_version_info_; 156 scoped_ptr<gfx::GLVersionInfo> gl_version_info_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(FeatureInfo); 158 DISALLOW_COPY_AND_ASSIGN(FeatureInfo);
159 }; 159 };
160 160
161 } // namespace gles2 161 } // namespace gles2
162 } // namespace gpu 162 } // namespace gpu
163 163
164 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_ 164 #endif // GPU_COMMAND_BUFFER_SERVICE_FEATURE_INFO_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698