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

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

Issue 10941017: Change the scale factor of texture_size from the layer's one to an estimation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Introduce device_scale_factor to ui::Texture Created 8 years, 3 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 a0c54fa90f4e5b200154a4163eaf152026dca4de..6badc662763b20d7242f8a7e291abcc9d1933beb 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1291,6 +1291,8 @@ void RenderWidgetHostViewAura::OnDeviceScaleFactorChanged(
if (backing_store) // NULL in hardware path.
backing_store->ScaleFactorChanged(device_scale_factor);
+ ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
+ factory->SetDeviceScaleFactor(device_scale_factor);
host_->SetDeviceScaleFactor(device_scale_factor);
current_cursor_.SetScaleFactor(device_scale_factor);
}

Powered by Google App Engine
This is Rietveld 408576698