don't filter when capturing a screenshot unless needed

bug: 6919952
Change-Id: Ia6fbe9bc7e533a64cfdd6ef7f0cd6b9f11feb947
diff --git a/services/surfaceflinger/LayerBase.h b/services/surfaceflinger/LayerBase.h
index e1d6793..663a864 100644
--- a/services/surfaceflinger/LayerBase.h
+++ b/services/surfaceflinger/LayerBase.h
@@ -146,7 +146,7 @@
      * to perform the actual drawing.  
      */
     virtual void draw(const DisplayDevice& hw, const Region& clip) const;
-    virtual void drawForScreenShot(const DisplayDevice& hw);
+    virtual void draw(const DisplayDevice& hw);
     
     /**
      * onDraw - draws the surface.
@@ -249,14 +249,14 @@
 
     void clearWithOpenGL(const DisplayDevice& hw, const Region& clip) const;
 
+    void setFiltering(bool filtering);
+    bool getFiltering() const;
+
 protected:
           void clearWithOpenGL(const DisplayDevice& hw, const Region& clip,
                   GLclampf r, GLclampf g, GLclampf b, GLclampf alpha) const;
           void drawWithOpenGL(const DisplayDevice& hw, const Region& clip) const;
 
-          void setFiltering(bool filtering);
-          bool getFiltering() const;
-
                 sp<SurfaceFlinger> mFlinger;
 
 private: