8383 * </ul>
8484 * <p>
8585 * <h4>Specifying the android.view.Surface</h4>
86- * By default GLSurfaceView will create a PixelFormat.RGB_565 format surface. If a translucent
86+ * By default GLSurfaceView will create a PixelFormat.RGB_888 format surface. If a translucent
8787 * surface is required, call getHolder().setFormat(PixelFormat.TRANSLUCENT).
8888 * The exact format of a TRANSLUCENT surface is device dependent, but it will be
8989 * a 32-bit-per-pixel surface with 8 bits per component.
9494 * well as how many bits are allocated to each channel. Therefore, the first thing
9595 * GLSurfaceView has to do when starting to render is choose what EGLConfig to use.
9696 * <p>
97- * By default GLSurfaceView chooses a EGLConfig that has an RGB_565 pixel format,
97+ * By default GLSurfaceView chooses a EGLConfig that has an RGB_888 pixel format,
9898 * with at least a 16-bit depth buffer and no stencil.
9999 * <p>
100100 * If you would prefer a different EGLConfig
@@ -414,7 +414,7 @@ public void setEGLConfigChooser(EGLConfigChooser configChooser) {
414414 * is called.
415415 * <p>
416416 * If no setEGLConfigChooser method is called, then by default the
417- * view will choose an RGB_565 surface with a depth buffer depth of
417+ * view will choose an RGB_888 surface with a depth buffer depth of
418418 * at least 16 bits.
419419 *
420420 * @param needDepth
@@ -432,7 +432,7 @@ public void setEGLConfigChooser(boolean needDepth) {
432432 * is called.
433433 * <p>
434434 * If no setEGLConfigChooser method is called, then by default the
435- * view will choose an RGB_565 surface with a depth buffer depth of
435+ * view will choose an RGB_888 surface with a depth buffer depth of
436436 * at least 16 bits.
437437 *
438438 */
@@ -968,13 +968,13 @@ private int findConfigAttrib(EGL10 egl, EGLDisplay display,
968968 }
969969
970970 /**
971- * This class will choose a RGB_565 surface with
971+ * This class will choose a RGB_888 surface with
972972 * or without a depth buffer.
973973 *
974974 */
975975 private class SimpleEGLConfigChooser extends ComponentSizeChooser {
976976 public SimpleEGLConfigChooser (boolean withDepthBuffer ) {
977- super (5 , 6 , 5 , 0 , withDepthBuffer ? 16 : 0 , 0 );
977+ super (8 , 8 , 8 , 0 , withDepthBuffer ? 16 : 0 , 0 );
978978 }
979979 }
980980
0 commit comments