OSDN Git Service

Add missing break in switch statement
authorRomain Guy <romainguy@google.com>
Thu, 2 Aug 2012 02:16:59 +0000 (19:16 -0700)
committerRomain Guy <romainguy@google.com>
Thu, 2 Aug 2012 02:16:59 +0000 (19:16 -0700)
Change-Id: I6206cc9ca46c4e2f125d3d820256280586ad66a1

libs/gui/SurfaceTexture.cpp

index ed6b73e..300b8d7 100644 (file)
@@ -608,7 +608,7 @@ void SurfaceTexture::computeCurrentTransformMatrix() {
                     // We know there's no subsampling of any channels, so we
                     // only need to shrink by a half a pixel.
                     shrinkAmount = 0.5;
-
+                    break;
                 default:
                     // If we don't recognize the format, we must assume the
                     // worst case (that we care about), which is YUV420.