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

Unified Diff: pdf/out_of_process_instance.h

Issue 2781613002: PDF Viewer pinch zoom: Update state for zoom in following a zoom out. (Closed)
Patch Set: Remove redundant code and clarify variable. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.h
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h
index dbaeb29c86c21253305b440723910d4df27df818..ae1b8e16f519f9d0139869f05e26d1e19a213f84 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -249,11 +249,11 @@ class OutOfProcessInstance : public pp::Instance,
// Current zoom factor.
double zoom_;
- double initial_zoom_ratio_;
// True if we request a new bitmap rendering.
bool needs_reraster_;
- // Scroll position at the start of a pinch zoom.
- pp::FloatPoint starting_scroll_offset_;
+ // The scroll position for the last raster, before any transformations are
+ // applied.
+ pp::FloatPoint scroll_offset_at_last_raster_;
// True if last bitmap was smaller than screen.
bool last_bitmap_smaller_;
// Current device scale factor.
« no previous file with comments | « no previous file | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698