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

Unified Diff: gpu/config/gpu_control_list.cc

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: gpu/config/gpu_control_list.cc
diff --git a/gpu/config/gpu_control_list.cc b/gpu/config/gpu_control_list.cc
index f4a382c43a702c7f6e41ff2e1f1a31f508c54eae..c95ef9f41dfea30360e01d91d1731088e5bae2e1 100644
--- a/gpu/config/gpu_control_list.cc
+++ b/gpu/config/gpu_control_list.cc
@@ -1010,7 +1010,9 @@ bool GpuControlList::GpuControlListEntry::GLVersionInfoMismatch(
GLType gl_type = kGLTypeNone;
if (segments.size() > 2 &&
segments[0] == "OpenGL" && segments[1] == "ES") {
- number = segments[2];
+ bool full_match = RE2::FullMatch(segments[2], "([\\d.]+).*", &number);
+ DCHECK(full_match);
+
gl_type = kGLTypeGLES;
if (segments.size() > 3 &&
StartsWithASCII(segments[3], "(ANGLE", false)) {
« no previous file with comments | « gpu/command_buffer/service/shader_manager_unittest.cc ('k') | gpu/config/gpu_control_list_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698