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

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

Issue 2608023002: Remove unused function Compositor::setDeviceScaleFactor. (Closed)
Patch Set: refine Created 3 years, 12 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 a3b1f9040d242e4c343aad3c37d22d79dace1b91..affcac97c7bc4fadd00493613fe463819d281457 100644
--- a/content/browser/renderer_host/compositor_impl_android.cc
+++ b/content/browser/renderer_host/compositor_impl_android.cc
@@ -324,7 +324,6 @@ CompositorImpl::CompositorImpl(CompositorClient* client,
: frame_sink_id_(
ui::ContextProviderFactory::GetInstance()->AllocateFrameSinkId()),
resource_manager_(root_window),
- device_scale_factor_(1),
window_(NULL),
surface_handle_(gpu::kNullSurfaceHandle),
client_(client),
@@ -443,7 +442,7 @@ void CompositorImpl::CreateLayerTreeHost() {
host_->SetFrameSinkId(frame_sink_id_);
host_->GetLayerTree()->SetViewportSize(size_);
SetHasTransparentBackground(false);
- host_->GetLayerTree()->SetDeviceScaleFactor(device_scale_factor_);
+ host_->GetLayerTree()->SetDeviceScaleFactor(1);
if (needs_animate_)
host_->SetNeedsAnimate();
@@ -471,12 +470,6 @@ void CompositorImpl::SetVisible(bool visible) {
}
}
-void CompositorImpl::setDeviceScaleFactor(float factor) {
- device_scale_factor_ = factor;
- if (host_)
- host_->GetLayerTree()->SetDeviceScaleFactor(factor);
-}
-
void CompositorImpl::SetWindowBounds(const gfx::Size& size) {
if (size_ == size)
return;
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.h ('k') | content/public/browser/android/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698