diff options
| author | 2019-02-06 13:48:06 -0800 | |
|---|---|---|
| committer | 2019-02-06 21:50:33 +0000 | |
| commit | 33a6eee57aca65faa11536c3533bb77dea78b7bd (patch) | |
| tree | 586230a47e3f238a4710aed32563821d934e9d5f /services/surfaceflinger/Layer.cpp | |
| parent | aa8756d2eab310aa632569f56947f522ab9e0248 (diff) | |
SF: Update cursor position using drawing state
Cursor position should be using drawing state instead of
current state which may not be committed yet. The current
implementation uses current state for bounds and calculates
the layer's effective transform using the drawing state.
Bug: 123989306
Test: Connect mouse and test pointer
Change-Id: I400e1a90628e0a089e5c3bb33b5df91ae9208414
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
| -rw-r--r-- | services/surfaceflinger/Layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 2de169dcb1..21591c3579 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -681,7 +681,7 @@ void Layer::updateCursorPosition(const sp<const DisplayDevice>& display) { } // This gives us only the "orientation" component of the transform - const State& s(getCurrentState()); + const State& s(getDrawingState()); // Apply the layer's transform, followed by the display's global transform // Here we're guaranteed that the layer's transform preserves rects |