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

Unified Diff: trunk/src/content/browser/renderer_host/backing_store_aura.cc

Issue 24262008: Revert 224473 "Remove dependency on ui::ScaleFactor from ui/gfx" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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: trunk/src/content/browser/renderer_host/backing_store_aura.cc
===================================================================
--- trunk/src/content/browser/renderer_host/backing_store_aura.cc (revision 224498)
+++ trunk/src/content/browser/renderer_host/backing_store_aura.cc (working copy)
@@ -38,7 +38,7 @@
const gfx::Size& size)
: BackingStore(widget, size) {
device_scale_factor_ =
- ui::GetImageScale(GetScaleFactorForView(widget->GetView()));
+ ui::GetScaleFactorScale(GetScaleFactorForView(widget->GetView()));
gfx::Size pixel_size = ToPixelSize(size, device_scale_factor_);
bitmap_.setConfig(SkBitmap::kARGB_8888_Config,
pixel_size.width(), pixel_size.height());
@@ -52,7 +52,7 @@
void BackingStoreAura::SkiaShowRect(const gfx::Point& point,
gfx::Canvas* canvas) {
gfx::ImageSkia image = gfx::ImageSkia(gfx::ImageSkiaRep(bitmap_,
- device_scale_factor_));
+ ui::GetScaleFactorFromScale(device_scale_factor_)));
canvas->DrawImageInt(image, point.x(), point.y());
}
« no previous file with comments | « trunk/src/content/browser/aura/software_output_device_win.cc ('k') | trunk/src/content/browser/renderer_host/dip_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698