From ad8b3de91fe0fe400d4efec170feafb7ff1079bb Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Fri, 8 Jan 2016 15:41:28 -0800 Subject: [PATCH] Fix build when raster cache is disabled --- sky/compositor/raster_cache.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sky/compositor/raster_cache.cc b/sky/compositor/raster_cache.cc index bde9a694c1b..1364092bc1c 100644 --- a/sky/compositor/raster_cache.cc +++ b/sky/compositor/raster_cache.cc @@ -13,6 +13,8 @@ namespace sky { namespace compositor { +#if ENABLE_RASTER_CACHE + static const int kRasterThreshold = 3; static bool isWorthRasterizing(SkPicture* picture) { @@ -21,6 +23,8 @@ static bool isWorthRasterizing(SkPicture* picture) { return picture->approximateOpCount() > 10 || picture->hasText(); } +#endif + RasterCache::RasterCache() { }