mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix build when raster cache is disabled
This commit is contained in:
parent
8f2838238d
commit
ad8b3de91f
@ -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() {
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user