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

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

Issue 10451112: content/chromeos: Fix WebKit software rendering in high-device-scale-factors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const-int Created 8 years, 6 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/render_widget_host_view_aura.cc
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 739b5b525dfdbb58d32457f9862ea9268576f3ac..d1f598c6924c278bf442a157727c44f393cb740f 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -246,6 +246,7 @@ void RenderWidgetHostViewAura::InitAsChild(
gfx::NativeView parent_view) {
window_->Init(ui::LAYER_TEXTURED);
window_->SetName("RenderWidgetHostViewAura");
+ window_->layer()->set_scale_content(false);
}
void RenderWidgetHostViewAura::InitAsPopup(
@@ -259,6 +260,7 @@ void RenderWidgetHostViewAura::InitAsPopup(
window_->SetName("RenderWidgetHostViewAura");
window_->SetParent(NULL);
+ window_->layer()->set_scale_content(false);
SetBounds(pos);
Show();
}
@@ -490,13 +492,6 @@ void RenderWidgetHostViewAura::OnAcceleratedCompositingStateChange() {
// the UpdateRect/AcceleratedSurfaceBuffersSwapped messages so that we have
// fewer inconsistent temporary states.
needs_update_texture_ = true;
-
- // Don't scale contents on high density screen when content is accelerated
- // because renderer takes care of it.
- // TODO(pkotwicz): Implement DIP backing store such that renderer always
- // scales web contents.
- window_->layer()->set_scale_content(
- !host_->is_accelerated_compositing_active());
}
void RenderWidgetHostViewAura::UpdateExternalTexture() {

Powered by Google App Engine
This is Rietveld 408576698