diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 22:50:41 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-08 22:50:41 +0000 |
commit | 1a6e2185c66c0fe1ef8a2e2d06acd352a43a6a62 (patch) | |
tree | 460b5d0686136f9f953ce1e760311853d8720ce5 /content/browser | |
parent | b1636bb28518e391520a90bccc1eb3febf18c3be (diff) | |
download | chromium_src-1a6e2185c66c0fe1ef8a2e2d06acd352a43a6a62.zip chromium_src-1a6e2185c66c0fe1ef8a2e2d06acd352a43a6a62.tar.gz chromium_src-1a6e2185c66c0fe1ef8a2e2d06acd352a43a6a62.tar.bz2 |
Derive scale factor from device
Enable DIP if --default-device-scale-factor option is specified.
Disable canvas scailing on RWHVAura because renderer takes care of it.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10378055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135935 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r-- | content/browser/renderer_host/render_widget_host_view_aura.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc index c598204..c032ab2 100644 --- a/content/browser/renderer_host/render_widget_host_view_aura.cc +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc @@ -258,6 +258,9 @@ void RenderWidgetHostViewAura::InitAsFullscreen( window_->SetName("RenderWidgetHostViewAura"); window_->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_FULLSCREEN); window_->SetParent(NULL); + // Don't scale the canvas on high density screen because + // the renderer takes care of it. + window_->layer()->set_scale_canvas(false); Show(); Focus(); } |