Commit b7100ab5 authored by Zhenyao Mo's avatar Zhenyao Mo Committed by Commit Bot

Use an ES 2.0 context to collect GPUInfo on Android.

BUG=791788
TEST=crash reports
R=piman@chromium.org

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Ic7a68b18e42241b4c67188098bc536c37c2fdeef
Reviewed-on: https://chromium-review.googlesource.com/810049Reviewed-by: default avatarAntoine Labour <piman@chromium.org>
Commit-Queue: Zhenyao Mo <zmo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#521985}
parent 1d58bc40
...@@ -49,8 +49,10 @@ scoped_refptr<gl::GLSurface> InitializeGLSurface() { ...@@ -49,8 +49,10 @@ scoped_refptr<gl::GLSurface> InitializeGLSurface() {
} }
scoped_refptr<gl::GLContext> InitializeGLContext(gl::GLSurface* surface) { scoped_refptr<gl::GLContext> InitializeGLContext(gl::GLSurface* surface) {
gl::GLContextAttribs attribs;
attribs.client_major_es_version = 2;
scoped_refptr<gl::GLContext> context( scoped_refptr<gl::GLContext> context(
gl::init::CreateGLContext(nullptr, surface, gl::GLContextAttribs())); gl::init::CreateGLContext(nullptr, surface, attribs));
if (!context.get()) { if (!context.get()) {
LOG(ERROR) << "gl::init::CreateGLContext failed"; LOG(ERROR) << "gl::init::CreateGLContext failed";
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment