Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Issue 2452813002: Updating the calculations used for image overpanning (Closed)

Created:
4 years, 1 month ago by joedow
Modified:
4 years, 1 month ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

Updating the calculations used for image overpanning This CL simplifies the calculations used for panning the remote desktop image out from under the System UI. It also constrains the cursor to the image coordinates vs. the previous method which did not. The old approach I used was to allow overpanning the remote desktop image by adjusting the boundaries of the image. This worked reasonably well but had one side effect for cursor mode as it meant the cursor arrow could be rendered outside of the actual image dimensions. Functionally this was fine as it was still constrained on the remote system but visually it was not optimal. The new approach is to use accurate boundaries for the cursor and viewport but instead accumulate an offset value (mViewportOffset) when the user tries to 'overpan' the image past its boundaries. The effect is that the cursor is still constrained to the image but we can move the image further in either dimension to ensure they can interact with it. Once the System UI disappears, we run a per-frame animation to reduce the offset and reposition/render the remote image. The effect is that the image slides back into view quickly which is much cleaner than the snapping effect we would have if we allowed Android to reposition the view. BUG=653309 Review-Url: https://codereview.chromium.org/2441723004 Cr-Commit-Position: refs/heads/master@{#427462} (cherry picked from commit 95ccb26c84a537f696b374097f7050d472fba289) Committed: https://chromium.googlesource.com/chromium/src/+/ab6933c26cf444f61413983fb56b8700166af6a8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -151 lines) Patch
M remoting/android/java/src/org/chromium/chromoting/DesktopCanvas.java View 10 chunks +221 lines, -151 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
joedow
4 years, 1 month ago (2016-10-25 22:39:37 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
ab6933c26cf444f61413983fb56b8700166af6a8.

Powered by Google App Engine
This is Rietveld 408576698