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
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 2de169d..21591c3 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -681,7 +681,7 @@
     }
 
     // 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