Loading libs/input/SpriteController.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -249,8 +249,7 @@ void SpriteController::doUpdateSprites() { // Pass cursor metadata in the sprite surface so that when Android is running as a // client OS (e.g. ARC++) the host OS can get the requested cursor metadata and // update mouse cursor in the host OS. t.setMetadata( update.state.surfaceControl, METADATA_MOUSE_CURSOR, p); t.setMetadata(update.state.surfaceControl, gui::METADATA_MOUSE_CURSOR, p); } int32_t surfaceLayer = mOverlayLayer + update.state.layer; Loading native/android/surface_control.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ ASurfaceControl* ASurfaceControl_createFromWindow(ANativeWindow* window, const c Surface* surface = static_cast<Surface*>(window); sp<IBinder> parentHandle = surface->getSurfaceControlHandle(); uint32_t flags = ISurfaceComposerClient::eFXSurfaceBufferState; int32_t flags = ISurfaceComposerClient::eFXSurfaceBufferState; sp<SurfaceControl> surfaceControl; if (parentHandle) { surfaceControl = Loading @@ -88,11 +88,8 @@ ASurfaceControl* ASurfaceControl_createFromWindow(ANativeWindow* window, const c // Format is only relevant for buffer queue layers. PIXEL_FORMAT_UNKNOWN /* format */, flags, parentHandle); } else { surfaceControl = client->createWithSurfaceParent(String8(debug_name), 0 /* width */, 0 /* height */, // Format is only relevant for buffer queue layers. PIXEL_FORMAT_UNKNOWN /* format */, flags, static_cast<Surface*>(window)); // deprecated, this should no longer be used surfaceControl = nullptr; } if (!surfaceControl) { Loading Loading
libs/input/SpriteController.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -249,8 +249,7 @@ void SpriteController::doUpdateSprites() { // Pass cursor metadata in the sprite surface so that when Android is running as a // client OS (e.g. ARC++) the host OS can get the requested cursor metadata and // update mouse cursor in the host OS. t.setMetadata( update.state.surfaceControl, METADATA_MOUSE_CURSOR, p); t.setMetadata(update.state.surfaceControl, gui::METADATA_MOUSE_CURSOR, p); } int32_t surfaceLayer = mOverlayLayer + update.state.layer; Loading
native/android/surface_control.cpp +3 −6 Original line number Diff line number Diff line Loading @@ -80,7 +80,7 @@ ASurfaceControl* ASurfaceControl_createFromWindow(ANativeWindow* window, const c Surface* surface = static_cast<Surface*>(window); sp<IBinder> parentHandle = surface->getSurfaceControlHandle(); uint32_t flags = ISurfaceComposerClient::eFXSurfaceBufferState; int32_t flags = ISurfaceComposerClient::eFXSurfaceBufferState; sp<SurfaceControl> surfaceControl; if (parentHandle) { surfaceControl = Loading @@ -88,11 +88,8 @@ ASurfaceControl* ASurfaceControl_createFromWindow(ANativeWindow* window, const c // Format is only relevant for buffer queue layers. PIXEL_FORMAT_UNKNOWN /* format */, flags, parentHandle); } else { surfaceControl = client->createWithSurfaceParent(String8(debug_name), 0 /* width */, 0 /* height */, // Format is only relevant for buffer queue layers. PIXEL_FORMAT_UNKNOWN /* format */, flags, static_cast<Surface*>(window)); // deprecated, this should no longer be used surfaceControl = nullptr; } if (!surfaceControl) { Loading