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

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

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tidy Created 8 years, 2 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/dip_util.cc
diff --git a/content/browser/renderer_host/dip_util.cc b/content/browser/renderer_host/dip_util.cc
index 36ee0947d3aa3e75acb92e27a92ca2e5a25a544a..f6071e0f5db89474399c1dc4b3392da99e044c8b 100644
--- a/content/browser/renderer_host/dip_util.cc
+++ b/content/browser/renderer_host/dip_util.cc
@@ -15,8 +15,8 @@ namespace content {
float GetDIPScaleFactor(const RenderWidgetHostView* view) {
if (gfx::Screen::IsDIPEnabled()) {
- gfx::Display display = gfx::Screen::GetDisplayNearestWindow(
- view ? view->GetNativeView() : NULL);
+ gfx::NativeView native_view = view ? view->GetNativeView() : NULL;
+ gfx::Display display = gfx::Screen::GetDisplayNearestWindow(native_view);
return display.device_scale_factor();
}
return 1.0f;

Powered by Google App Engine
This is Rietveld 408576698