| Index: gpu/command_buffer/service/feature_info.cc
|
| diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
|
| index 46cd137b005cf5f5e9852e66ea28fadca83bd511..deb8d29d350fc2e99e81af7e2696793aa3f90b47 100644
|
| --- a/gpu/command_buffer/service/feature_info.cc
|
| +++ b/gpu/command_buffer/service/feature_info.cc
|
| @@ -1424,6 +1424,14 @@ bool FeatureInfo::IsWebGLContext() const {
|
| return false;
|
| }
|
|
|
| +bool FeatureInfo::IsWebGL2Context() const {
|
| + // Switch statement to cause a compile-time error if we miss a case.
|
| + if (context_type_ == CONTEXT_TYPE_WEBGL2) {
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| void FeatureInfo::AddExtensionString(const char* s) {
|
| std::string str(s);
|
| size_t pos = extensions_.find(str);
|
|
|