0
回答
获取手机GPU信息有误,求大神赐教


为什么我获取系统GPU信息  显示的是这样子  而不是什么厂商什么型号


class DemoRenderer  implements GLSurfaceView.Renderer {


public void onSurfaceCreated(GL10 gl, EGLConfig config)
{
Log.d("SystemInfo", "GL_RENDERER = " +gl.glGetString(GL10.GL_RENDERER)); 
Log.d("SystemInfo", "GL_VENDOR = " + gl.glGetString(GL10.GL_VENDOR)); 
Log.d("SystemInfo", "GL_VERSION = " + gl.glGetString(GL10.GL_VERSION)); 
Log.i("SystemInfo", "GL_EXTENSIONS = " + gl.glGetString(GL10.GL_EXTENSIONS)); 
}




@Override
public void onDrawFrame(GL10 arg0) {
// TODO Auto-generated method stub


}




@Override
public void onSurfaceChanged(GL10 arg0, int arg1, int arg2) {
// TODO Auto-generated method stub


}




@Override
public void onSurfaceCreated(GL10 gl, javax.microedition.khronos.egl.EGLConfig config)
{
// TODO Auto-generated method stub
}


}


class DemoGLSurfaceView extends GLSurfaceView {


DemoRenderer mRenderer;
public DemoGLSurfaceView(Context context) {
super(context);
setEGLConfigChooser(8, 8, 8, 8, 0, 0);
mRenderer = new DemoRenderer();
setRenderer(mRenderer);
}
}


// 显示信息对话框
public void showDialog(String title, String info)
{
AlertDialog dialog = new AlertDialog.Builder(this).setTitle(title).setMessage(info).setPositiveButton("close", new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog, int which)
{
dialog.cancel();
dialog = null;
}
}).create();
dialog.show();
}

举报
fbhokzd2jo
发帖于4年前 0回/215阅
顶部