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

Unified Diff: content/browser/renderer_host/compositor_impl_android.cc

Issue 12220110: Set the device scale factor from the compositor interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More consistent function ordering 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
Index: content/browser/renderer_host/compositor_impl_android.cc
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc
index f65a8617902acc1d15f3f89dff721588b512632a..21ab7e715f3b63ade2d2bee37e02c0a76c5f416d 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -196,6 +196,10 @@ void CompositorImpl::SetVisible(bool visible) {
}
}
+void CompositorImpl::setDeviceScaleFactor(float factor) {
+ host_->setDeviceScaleFactor(factor);
+}
+
void CompositorImpl::SetWindowBounds(const gfx::Size& size) {
if (size_ == size)
return;

Powered by Google App Engine
This is Rietveld 408576698