Commit 9cbab38d authored by liushouqun's avatar liushouqun Committed by Commit bot

Remove unused function Compositor::setDeviceScaleFactor.

BUG=

Review-Url: https://codereview.chromium.org/2608023002
Cr-Commit-Position: refs/heads/master@{#441312}
parent e77aadd2
......@@ -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;
......
......@@ -67,7 +67,6 @@ class CONTENT_EXPORT CompositorImpl
// Compositor implementation.
void SetRootLayer(scoped_refptr<cc::Layer> root) override;
void SetSurface(jobject surface) override;
void setDeviceScaleFactor(float factor) override;
void SetWindowBounds(const gfx::Size& size) override;
void SetHasTransparentBackground(bool flag) override;
void SetNeedsComposite() override;
......@@ -142,7 +141,6 @@ class CONTENT_EXPORT CompositorImpl
gfx::Size size_;
bool has_transparent_background_;
float device_scale_factor_;
ANativeWindow* window_;
gpu::SurfaceHandle surface_handle_;
......
......@@ -42,9 +42,6 @@ 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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment