Skip to content

Commit

Permalink
[build] Fixes include headers on Linux for ClearFontRenderParamsCache…
Browse files Browse the repository at this point in the history
…ForTest

BUG=NONE
TEST=build gfx_unittests targeting linux succeeds

Review URL: https://codereview.chromium.org/1540933002

Cr-Commit-Position: refs/heads/master@{#366442}
  • Loading branch information
varkha authored and Commit bot committed Dec 21, 2015
1 parent 85a6333 commit f2b566d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/gfx/font_render_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <vector>

#include "build/build_config.h"
#include "third_party/skia/include/core/SkFontHost.h"
#include "ui/gfx/gfx_export.h"

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit f2b566d

Please sign in to comment.