From f2b566dbae234ad89b2a6f247c7f6f2322c67250 Mon Sep 17 00:00:00 2001 From: varkha Date: Mon, 21 Dec 2015 11:38:08 -0800 Subject: [PATCH] [build] Fixes include headers on Linux for ClearFontRenderParamsCacheForTest BUG=NONE TEST=build gfx_unittests targeting linux succeeds Review URL: https://codereview.chromium.org/1540933002 Cr-Commit-Position: refs/heads/master@{#366442} --- ui/gfx/font_render_params.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/gfx/font_render_params.h b/ui/gfx/font_render_params.h index 8febd661fd233e..989f9aa129ac3a 100644 --- a/ui/gfx/font_render_params.h +++ b/ui/gfx/font_render_params.h @@ -8,6 +8,7 @@ #include #include +#include "build/build_config.h" #include "third_party/skia/include/core/SkFontHost.h" #include "ui/gfx/gfx_export.h" @@ -99,12 +100,11 @@ GFX_EXPORT FontRenderParams GetFontRenderParams( const FontRenderParamsQuery& query, std::string* family_out); +#if defined(OS_LINUX) // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are // changing Fontconfig's configuration. -// TODO(derat): This is only defined for Linux, but OS_LINUX doesn't seem to be -// set when font_render_params_linux_unittest.cc includes this header. Figure -// out what's going on here. GFX_EXPORT void ClearFontRenderParamsCacheForTest(); +#endif #if defined(OS_CHROMEOS) // Gets the device scale factor to query the FontRenderParams.