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

Unified Diff: ui/compositor/layer.cc

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename methods and vars to make image_scale more clear 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: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 1d30d91e6ff854b310e4ec738b6df3bf0355372a..f940c2d37d5865c7d6a6e7b0823e3778ae0a1d69 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -637,7 +637,7 @@ void Layer::PaintContents(SkCanvas* sk_canvas,
gfx::RectF* opaque) {
TRACE_EVENT0("ui", "Layer::PaintContents");
scoped_ptr<gfx::Canvas> canvas(gfx::Canvas::CreateCanvasWithoutScaling(
- sk_canvas, ui::GetScaleFactorFromScale(device_scale_factor_)));
+ sk_canvas, device_scale_factor_));
bool scale_content = scale_content_;
if (scale_content) {

Powered by Google App Engine
This is Rietveld 408576698