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

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

Issue 10834248: Clean-up inline members of nested classes (gpu/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GLES2_IMPL_EXPORT Created 8 years, 4 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
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/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 bool Contains(const std::string& s) { 57 bool Contains(const std::string& s) {
58 return string_set_.find(s) != string_set_.end(); 58 return string_set_.find(s) != string_set_.end();
59 } 59 }
60 60
61 private: 61 private:
62 std::set<std::string> string_set_; 62 std::set<std::string> string_set_;
63 }; 63 };
64 64
65 } // anonymous namespace. 65 } // anonymous namespace.
66 66
67 FeatureInfo::FeatureFlags::FeatureFlags()
68 : chromium_framebuffer_multisample(false),
69 oes_standard_derivatives(false),
70 oes_egl_image_external(false),
71 npot_ok(false),
72 enable_texture_float_linear(false),
73 enable_texture_half_float_linear(false),
74 chromium_webglsl(false),
75 chromium_stream_texture(false),
76 angle_translated_shader_source(false),
77 angle_pack_reverse_row_order(false),
78 arb_texture_rectangle(false),
79 angle_instanced_arrays(false),
80 occlusion_query_boolean(false),
81 use_arb_occlusion_query2_for_occlusion_query_boolean(false),
82 use_arb_occlusion_query_for_occlusion_query_boolean(false),
83 disable_workarounds(false),
84 is_intel(false),
85 is_nvidia(false),
86 is_amd(false) {
87 }
88
67 FeatureInfo::FeatureInfo() { 89 FeatureInfo::FeatureInfo() {
68 static const GLenum kAlphaTypes[] = { 90 static const GLenum kAlphaTypes[] = {
69 GL_UNSIGNED_BYTE, 91 GL_UNSIGNED_BYTE,
70 }; 92 };
71 static const GLenum kRGBTypes[] = { 93 static const GLenum kRGBTypes[] = {
72 GL_UNSIGNED_BYTE, 94 GL_UNSIGNED_BYTE,
73 GL_UNSIGNED_SHORT_5_6_5, 95 GL_UNSIGNED_SHORT_5_6_5,
74 }; 96 };
75 static const GLenum kRGBATypes[] = { 97 static const GLenum kRGBATypes[] = {
76 GL_UNSIGNED_BYTE, 98 GL_UNSIGNED_BYTE,
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 if (extensions_.find(str) == std::string::npos) { 614 if (extensions_.find(str) == std::string::npos) {
593 extensions_ += (extensions_.empty() ? "" : " ") + str; 615 extensions_ += (extensions_.empty() ? "" : " ") + str;
594 } 616 }
595 } 617 }
596 618
597 FeatureInfo::~FeatureInfo() { 619 FeatureInfo::~FeatureInfo() {
598 } 620 }
599 621
600 } // namespace gles2 622 } // namespace gles2
601 } // namespace gpu 623 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698