[SurfaceFlinger] Turn on Filtering when scaling.

Whenever the dimension of display frame doesn't match the dimension of the
cropped buffer, it means the buffer is going to be scaled, we must enable
filtering on GPU composition.

BUG: 121050127
Test: Open Hacker News in Chrome and verify by swiping up while keep finger on.
Change-Id: I8c1c5c90c640f10d19f38f821df93bf9be476a85
diff --git a/services/surfaceflinger/BufferLayer.h b/services/surfaceflinger/BufferLayer.h
index be16cf5..6eda20d 100644
--- a/services/surfaceflinger/BufferLayer.h
+++ b/services/surfaceflinger/BufferLayer.h
@@ -168,8 +168,8 @@
     const uint32_t mTextureName;
 
 private:
-    // needsLinearFiltering - true if this surface's state requires filtering
-    bool needsFiltering(const RenderArea& renderArea) const;
+    // Returns true if this layer requires filtering
+    bool needsFiltering() const;
 
     // drawing
     void drawWithOpenGL(const RenderArea& renderArea, bool useIdentityTransform) const;