summaryrefslogtreecommitdiff
path: root/services/input/SpriteController.cpp
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2012-08-26 02:47:39 -0700
committer Jeff Brown <jeffbrown@google.com> 2012-08-27 14:34:54 -0700
commit64a55af0ac700baecb0877235eb42caac59a3560 (patch)
tree0f3c36ce8204e6cf8eedf04ce9ae24373239ddd8 /services/input/SpriteController.cpp
parent0b722fe9ce98d97dbcb6fefd170b85ab7037e528 (diff)
Add plumbing for new surface flinger display API.
Cleaned up the implementation of Surface and SurfaceSession to use more consistent naming and structure. Added JNI for all of the new surface flinger display API calls. Enforced the requirement that all Surfaces created by the window manager be named. Updated the display manager service to use the new methods. Change-Id: I2a658f1bfd0437e1c6f9d22df8d4ffcce7284ca2
Diffstat (limited to 'services/input/SpriteController.cpp')
-rw-r--r--services/input/SpriteController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/input/SpriteController.cpp b/services/input/SpriteController.cpp
index 5bbaa48f3bf1..8bb9d7f42601 100644
--- a/services/input/SpriteController.cpp
+++ b/services/input/SpriteController.cpp
@@ -369,7 +369,8 @@ sp<SurfaceControl> SpriteController::obtainSurface(int32_t width, int32_t height
ensureSurfaceComposerClient();
sp<SurfaceControl> surfaceControl = mSurfaceComposerClient->createSurface(
- String8("Sprite"), width, height, PIXEL_FORMAT_RGBA_8888);
+ String8("Sprite"), width, height, PIXEL_FORMAT_RGBA_8888,
+ ISurfaceComposerClient::eHidden);
if (surfaceControl == NULL || !surfaceControl->isValid()
|| !surfaceControl->getSurface()->isValid()) {
ALOGE("Error creating sprite surface.");