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

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

Issue 1068133002: gpu: Add UMA statistic for RG texture support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | tools/metrics/histograms/histograms.xml » ('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 #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/macros.h" 10 #include "base/macros.h"
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 1081
1082 if (enable_texture_float) { 1082 if (enable_texture_float) {
1083 texture_format_validators_[GL_RED_EXT].AddValue(GL_FLOAT); 1083 texture_format_validators_[GL_RED_EXT].AddValue(GL_FLOAT);
1084 texture_format_validators_[GL_RG_EXT].AddValue(GL_FLOAT); 1084 texture_format_validators_[GL_RG_EXT].AddValue(GL_FLOAT);
1085 } 1085 }
1086 if (enable_texture_half_float) { 1086 if (enable_texture_half_float) {
1087 texture_format_validators_[GL_RED_EXT].AddValue(GL_HALF_FLOAT_OES); 1087 texture_format_validators_[GL_RED_EXT].AddValue(GL_HALF_FLOAT_OES);
1088 texture_format_validators_[GL_RG_EXT].AddValue(GL_HALF_FLOAT_OES); 1088 texture_format_validators_[GL_RG_EXT].AddValue(GL_HALF_FLOAT_OES);
1089 } 1089 }
1090 } 1090 }
1091 UMA_HISTOGRAM_BOOLEAN("GPU.TextureRG", feature_flags_.ext_texture_rg);
1091 1092
1092 #if !defined(OS_MACOSX) 1093 #if !defined(OS_MACOSX)
1093 if (workarounds_.ignore_egl_sync_failures) { 1094 if (workarounds_.ignore_egl_sync_failures) {
1094 gfx::GLFenceEGL::SetIgnoreFailures(); 1095 gfx::GLFenceEGL::SetIgnoreFailures();
1095 } 1096 }
1096 #endif 1097 #endif
1097 } 1098 }
1098 1099
1099 bool FeatureInfo::IsES3Capable() const { 1100 bool FeatureInfo::IsES3Capable() const {
1100 if (gl_version_info_->IsAtLeastGLES(3, 0)) 1101 if (gl_version_info_->IsAtLeastGLES(3, 0))
(...skipping 28 matching lines...) Expand all
1129 if (pos == std::string::npos) { 1130 if (pos == std::string::npos) {
1130 extensions_ += (extensions_.empty() ? "" : " ") + str; 1131 extensions_ += (extensions_.empty() ? "" : " ") + str;
1131 } 1132 }
1132 } 1133 }
1133 1134
1134 FeatureInfo::~FeatureInfo() { 1135 FeatureInfo::~FeatureInfo() {
1135 } 1136 }
1136 1137
1137 } // namespace gles2 1138 } // namespace gles2
1138 } // namespace gpu 1139 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698