Merge "Move displaying mag bounds into surface transation" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6f3bc05868
@@ -222,11 +222,10 @@ final class AccessibilityController {
|
|||||||
|| mWindowsForAccessibilityObserver != null);
|
|| mWindowsForAccessibilityObserver != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** NOTE: This has to be called within a surface transaction. */
|
|
||||||
public void setForceShowMagnifiableBoundsLocked(boolean show) {
|
public void setForceShowMagnifiableBoundsLocked(boolean show) {
|
||||||
if (mDisplayMagnifier != null) {
|
if (mDisplayMagnifier != null) {
|
||||||
mDisplayMagnifier.setForceShowMagnifiableBoundsLocked(show);
|
mDisplayMagnifier.setForceShowMagnifiableBoundsLocked(show);
|
||||||
mDisplayMagnifier.drawMagnifiedRegionBorderIfNeededLocked();
|
mDisplayMagnifier.showMagnificationBoundsIfNeeded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -440,6 +439,12 @@ final class AccessibilityController {
|
|||||||
mMagnifedViewport.destroyWindow();
|
mMagnifedViewport.destroyWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Can be called outside of a surface transaction
|
||||||
|
public void showMagnificationBoundsIfNeeded() {
|
||||||
|
mHandler.obtainMessage(MyHandler.MESSAGE_SHOW_MAGNIFIED_REGION_BOUNDS_IF_NEEDED)
|
||||||
|
.sendToTarget();
|
||||||
|
}
|
||||||
|
|
||||||
/** NOTE: This has to be called within a surface transaction. */
|
/** NOTE: This has to be called within a surface transaction. */
|
||||||
public void drawMagnifiedRegionBorderIfNeededLocked() {
|
public void drawMagnifiedRegionBorderIfNeededLocked() {
|
||||||
mMagnifedViewport.drawWindowIfNeededLocked();
|
mMagnifedViewport.drawWindowIfNeededLocked();
|
||||||
|
|||||||
Reference in New Issue
Block a user