summaryrefslogtreecommitdiffstats
path: root/libs/input
diff options
context:
space:
mode:
authorRiley Andrews <riandrews@google.com>2014-07-07 11:47:35 -0700
committerRiley Andrews <riandrews@google.com>2014-07-28 22:04:06 +0000
commit68eccdade2aad22b7eb34a28572c204dcd54f7b9 (patch)
tree9e967e1283ee29ddfe54864d2e43c593b52cded9 /libs/input
parent03cab4cbe696cf6c5cfe58934c5aaf1c5533a2c5 (diff)
downloadframeworks_base-68eccdade2aad22b7eb34a28572c204dcd54f7b9.zip
frameworks_base-68eccdade2aad22b7eb34a28572c204dcd54f7b9.tar.gz
frameworks_base-68eccdade2aad22b7eb34a28572c204dcd54f7b9.tar.bz2
Add cursor flags into SpriteController to suppor async cursor updates.
- This is fairly blindly taken from nvidia's implementation. Change-Id: I825ecbd9cb4b394793dce079591b37efca546bbe
Diffstat (limited to 'libs/input')
-rw-r--r--libs/input/SpriteController.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/input/SpriteController.cpp b/libs/input/SpriteController.cpp
index a69c32d..5391393 100644
--- a/libs/input/SpriteController.cpp
+++ b/libs/input/SpriteController.cpp
@@ -370,7 +370,8 @@ sp<SurfaceControl> SpriteController::obtainSurface(int32_t width, int32_t height
sp<SurfaceControl> surfaceControl = mSurfaceComposerClient->createSurface(
String8("Sprite"), width, height, PIXEL_FORMAT_RGBA_8888,
- ISurfaceComposerClient::eHidden);
+ ISurfaceComposerClient::eHidden |
+ ISurfaceComposerClient::eCursorWindow);
if (surfaceControl == NULL || !surfaceControl->isValid()) {
ALOGE("Error creating sprite surface.");
return NULL;