Merge "Fix bytesPerPixel for SurfaceTexture" into nyc-dev

This commit is contained in:
John Reck
2016-02-12 16:11:30 +00:00
committed by Android (Google) Code Review

View File

@@ -28,6 +28,9 @@ namespace uirenderer {
static int bytesPerPixel(GLint glFormat) {
switch (glFormat) {
// The wrapped-texture case, usually means a SurfaceTexture
case 0:
return 0;
case GL_ALPHA:
return 1;
case GL_RGB: