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

Unified Diff: content/public/browser/android/compositor.h

Issue 12220110: Set the device scale factor from the compositor interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: dp -> DIP Created 7 years, 10 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 | « content/browser/renderer_host/compositor_impl_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/android/compositor.h
diff --git a/content/public/browser/android/compositor.h b/content/public/browser/android/compositor.h
index 7cf5da5a638c4833233115373a3360a6aaacd979..7d3d3b9eb7d208afc7e739abee44619285df17f3 100644
--- a/content/public/browser/android/compositor.h
+++ b/content/public/browser/android/compositor.h
@@ -60,6 +60,9 @@ class CONTENT_EXPORT Compositor {
// Attaches the layer tree.
virtual void SetRootLayer(scoped_refptr<cc::Layer> root) = 0;
+ // Set the scale factor from DIP to pixel.
+ virtual void setDeviceScaleFactor(float factor) = 0;
+
// Set the output surface bounds.
virtual void SetWindowBounds(const gfx::Size& size) = 0;
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698