标签:
1. ANativeWindow_setBuffersGeometry
eglGetConfigAttrib(display, configs[best_config], EGL_NATIVE_VISUAL_ID, &format);
ANativeWindow_setBuffersGeometry((ANativeWindow*)m_window, w, h, format);
surface = eglCreateWindowSurface(display, configs[best_config], (EGLNativeWindowType)m_window, NULL);
2. java代码: SurfaceView.getHolder().surfaceHolder.setFixedSize(w,h).
标签:
原文地址:http://blog.csdn.net/claien/article/details/45224073