command_buffer_gles2: Avoid crashing for lack of JNI

Do not use Java environment to detect device model when command buffer
is built as a standalone library.
EGL API can not be used to pass the JNI from client to the library,
and the client might not be a Java application anyway.

BUG=skia:2992

Review URL: https://codereview.chromium.org/1656223003

Cr-Commit-Position: refs/heads/master@{#373195}
1 file changed