summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.h
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2012-05-10 20:43:55 -0700
committerJamie Gennis <jgennis@google.com>2012-05-11 03:16:02 -0700
commitf15a83f5814219c167f87cb8aaea622fc8493499 (patch)
tree131d3c92aa0f1e75b110b187b8ee6859be5d0bc5 /services/surfaceflinger/Layer.h
parentf30fd01497a53cbff8692721026c3f7b6830158e (diff)
downloadframeworks_native-f15a83f5814219c167f87cb8aaea622fc8493499.zip
frameworks_native-f15a83f5814219c167f87cb8aaea622fc8493499.tar.gz
frameworks_native-f15a83f5814219c167f87cb8aaea622fc8493499.tar.bz2
SurfaceFlinger: add a crop to the layer state
This change adds a crop rectangle specified in window coordinates to the layer state. The all window pixels outside this crop rectangle are treated as though they were fully transparent. This change also adds the plumbing necessary for WindowManager to set that crop. Change-Id: I582bc445dc8c97d4c943d4db8d582a6ef5a66081
Diffstat (limited to 'services/surfaceflinger/Layer.h')
-rw-r--r--services/surfaceflinger/Layer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h
index 1188621..393599f 100644
--- a/services/surfaceflinger/Layer.h
+++ b/services/surfaceflinger/Layer.h
@@ -101,6 +101,7 @@ private:
uint32_t getEffectiveUsage(uint32_t usage) const;
uint32_t getTransformHint() const;
bool isCropped() const;
+ Rect computeBufferCrop() const;
static bool getOpacityForFormat(uint32_t format);
// -----------------------------------------------------------------------