summaryrefslogtreecommitdiff
path: root/libs/surfaceflinger/LayerBase.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-05-26 22:11:03 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2010-05-26 22:11:03 -0700
commiteaa60d313a50728b495174a621f2bd1328e797cf (patch)
tree18a44d6099e700b54d82edbb77f6ee497dd6f97c /libs/surfaceflinger/LayerBase.h
parent5260f23bf1b9b6648057079022cc9f6c9d44e537 (diff)
parenta7f669256f93a593c723f05784ef04d3c7d052bb (diff)
Merge "Make sure to use filtering while in fixed-size mode" into kraken
Diffstat (limited to 'libs/surfaceflinger/LayerBase.h')
-rw-r--r--libs/surfaceflinger/LayerBase.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/surfaceflinger/LayerBase.h b/libs/surfaceflinger/LayerBase.h
index 569b0ff2e5..6d7859ac21 100644
--- a/libs/surfaceflinger/LayerBase.h
+++ b/libs/surfaceflinger/LayerBase.h
@@ -177,6 +177,11 @@ public:
virtual bool needsDithering() const { return false; }
/**
+ * needsLinearFiltering - true if this surface needs filtering
+ */
+ virtual bool needsFiltering() const { return mNeedsFiltering; }
+
+ /**
* transformed -- true is this surface needs a to be transformed
*/
virtual bool transformed() const { return mTransformed; }
@@ -232,7 +237,7 @@ protected:
// cached during validateVisibility()
bool mTransformed;
- bool mUseLinearFiltering;
+ bool mNeedsFiltering;
int32_t mOrientation;
GLfloat mVertices[4][2];
Rect mTransformedBounds;