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

Unified Diff: pdf/paint_manager.h

Issue 1901903002: Improved Pinch-Zoom for PDF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pepper_add_set_layer_transform
Patch Set: Added LICENSE file Created 4 years, 8 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
Index: pdf/paint_manager.h
diff --git a/pdf/paint_manager.h b/pdf/paint_manager.h
index d7f7e3f594b8685bbf84cc18b012eb0789f14b28..903bcb315c58348083b3919aee99d6de6d7fd688 100644
--- a/pdf/paint_manager.h
+++ b/pdf/paint_manager.h
@@ -144,7 +144,14 @@ class PaintManager {
pp::Size GetEffectiveSize() const;
float GetEffectiveDeviceScale() const;
+ // Set the transform for the graphics layer.
+ void SetTransform(float scale, pp::Point Origin, pp::Point Transform);
+ void SetTransform(float scale);
private:
+ //Coalesce transforms if Flush is busy
+ float scale_;
+ pp::Point origin_, transform_;
+
// Disallow copy and assign (these are unimplemented).
PaintManager(const PaintManager&);
PaintManager& operator=(const PaintManager&);
@@ -183,6 +190,7 @@ class PaintManager {
// See comment for EnsureCallbackPending for more on how these work.
bool manual_callback_pending_;
bool flush_pending_;
+ bool flush_requested_;
// When we get a resize, we don't bind right away (see SetSize). The
// has_pending_resize_ tells us that we need to do a resize for the next

Powered by Google App Engine
This is Rietveld 408576698