| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/base_paths.h" | 5 #include "base/base_paths.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/debug/crash_logging.h" | 7 #include "base/debug/crash_logging.h" |
| 8 #include "base/debug/debugger.h" | 8 #include "base/debug/debugger.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/run_loop.h" |
| 13 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 14 #include "build/build_config.h" | 15 #include "build/build_config.h" |
| 15 #include "content/child/child_process.h" | 16 #include "content/child/child_process.h" |
| 16 #include "content/common/content_constants_internal.h" | 17 #include "content/common/content_constants_internal.h" |
| 17 #include "content/common/sandbox_linux/sandbox_linux.h" | 18 #include "content/common/sandbox_linux/sandbox_linux.h" |
| 18 #include "content/ppapi_plugin/ppapi_thread.h" | 19 #include "content/ppapi_plugin/ppapi_thread.h" |
| 19 #include "content/public/common/content_client.h" | 20 #include "content/public/common/content_client.h" |
| 20 #include "content/public/common/content_switches.h" | 21 #include "content/public/common/content_switches.h" |
| 21 #include "content/public/common/main_function_params.h" | 22 #include "content/public/common/main_function_params.h" |
| 22 #include "ipc/ipc_sender.h" | 23 #include "ipc/ipc_sender.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 blink::WebFontRendering::setDeviceScaleFactor(display::win::GetDPIScale()); | 136 blink::WebFontRendering::setDeviceScaleFactor(display::win::GetDPIScale()); |
| 136 | 137 |
| 137 const gfx::FontRenderParams font_params = | 138 const gfx::FontRenderParams font_params = |
| 138 gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr); | 139 gfx::GetFontRenderParams(gfx::FontRenderParamsQuery(), nullptr); |
| 139 blink::WebFontRendering::setAntialiasedTextEnabled(font_params.antialiasing); | 140 blink::WebFontRendering::setAntialiasedTextEnabled(font_params.antialiasing); |
| 140 blink::WebFontRendering::setLCDTextEnabled( | 141 blink::WebFontRendering::setLCDTextEnabled( |
| 141 font_params.subpixel_rendering != | 142 font_params.subpixel_rendering != |
| 142 gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE); | 143 gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE); |
| 143 #endif | 144 #endif |
| 144 | 145 |
| 145 main_message_loop.Run(); | 146 base::RunLoop().Run(); |
| 146 | 147 |
| 147 #if defined(OS_WIN) | 148 #if defined(OS_WIN) |
| 148 UninitializeDWriteFontProxy(); | 149 UninitializeDWriteFontProxy(); |
| 149 #endif | 150 #endif |
| 150 return 0; | 151 return 0; |
| 151 } | 152 } |
| 152 | 153 |
| 153 } // namespace content | 154 } // namespace content |
| OLD | NEW |