Fix build when raster cache is disabled

This commit is contained in:
Adam Barth 2016-01-08 15:41:28 -08:00
parent 8f2838238d
commit ad8b3de91f

View File

@ -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() {
}