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

Issue 2764353002: PDF Viewer pinch zoom: Compute the zoom needed for the paint offset. (Closed)

Created:
3 years, 9 months ago by Kevin McNee
Modified:
3 years, 9 months ago
Reviewers:
Lei Zhang, bokan
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

PDF Viewer pinch zoom: Compute the zoom needed for the paint offset. Currently, when pinch zooming in, starting with a document that doesn't cover the width of the plugin, we record the last zoom before the document does cover the width. This value is used to compute the |paint_offset| for the rest of the pinch. However, if the pinch is done quickly, the last zoom value we record may differ significantly from the zoom at which the rendered document width matches the plugin width. This leads to an incorrect |paint_offset| as the gesture continues. We now compute the correct zoom value, rather than relying on the last one we see to be accurate. BUG=704160 Review-Url: https://codereview.chromium.org/2764353002 Cr-Commit-Position: refs/heads/master@{#459069} Committed: https://chromium.googlesource.com/chromium/src/+/08f7da01c04697fb873396bdf84b4ee34175fddd

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M pdf/out_of_process_instance.h View 1 chunk +0 lines, -1 line 0 comments Download
M pdf/out_of_process_instance.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Kevin McNee
Hello, thestig. Could you take a look at this change? I've also added bokan, who ...
3 years, 9 months ago (2017-03-22 16:59:53 UTC) #5
bokan
change looks good to me but are we still unable to get tests here?
3 years, 9 months ago (2017-03-22 20:30:19 UTC) #8
Kevin McNee
On 2017/03/22 20:30:19, bokan wrote: > change looks good to me but are we still ...
3 years, 9 months ago (2017-03-22 20:50:05 UTC) #9
bokan
ok then, lgtm from me
3 years, 9 months ago (2017-03-22 21:39:27 UTC) #10
Lei Zhang
On 2017/03/22 20:50:05, Kevin McNee wrote: > On 2017/03/22 20:30:19, bokan wrote: > > change ...
3 years, 9 months ago (2017-03-22 21:45:04 UTC) #11
Lei Zhang
lgtm
3 years, 9 months ago (2017-03-22 21:46:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2764353002/1
3 years, 9 months ago (2017-03-23 13:54:29 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 13:59:48 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/08f7da01c04697fb873396bdf84b...

Powered by Google App Engine
This is Rietveld 408576698