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

Side by Side Diff: ui/gfx/linux_font_delegate.cc

Issue 929733002: Fix Pango font rendering with HiDPi displays on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don’t scale fonts up twice when running with device_scale_factor > 1.0. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/linux_font_delegate.h" 5 #include "ui/gfx/linux_font_delegate.h"
6 6
7 namespace { 7 namespace {
8 8
9 gfx::LinuxFontDelegate* g_linux_font_delegate = 0; 9 gfx::LinuxFontDelegate* g_linux_font_delegate = 0;
10 10
11 } // namespace 11 } // namespace
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 void LinuxFontDelegate::SetInstance(LinuxFontDelegate* instance) { 15 void LinuxFontDelegate::SetInstance(LinuxFontDelegate* instance) {
16 g_linux_font_delegate = instance; 16 g_linux_font_delegate = instance;
17 } 17 }
18 18
19 const LinuxFontDelegate* LinuxFontDelegate::instance() { 19 LinuxFontDelegate* LinuxFontDelegate::instance() {
20 return g_linux_font_delegate; 20 return g_linux_font_delegate;
21 } 21 }
22 22
23 } // namespace gfx 23 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698