Add cursor flags into SpriteController to suppor async cursor updates.
- This is fairly blindly taken from nvidia's implementation.
Change-Id: I825ecbd9cb4b394793dce079591b37efca546bbe
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> 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;