@@ -517,7 +517,7 @@ TEST_F(DisplayListLayerTest, OverflowCachedDisplayListOpacityInheritance) {
|
||||
use_mock_raster_cache();
|
||||
PrerollContext* context = preroll_context();
|
||||
int per_frame =
|
||||
RasterCacheUtil::kDefaultPictureAndDispLayListCacheLimitPerFrame;
|
||||
RasterCacheUtil::kDefaultPictureAndDisplayListCacheLimitPerFrame;
|
||||
int layer_count = per_frame + 1;
|
||||
SkPoint opacity_offset = {10, 10};
|
||||
auto opacity_layer = std::make_shared<OpacityLayer>(0.5f, opacity_offset);
|
||||
|
||||
@@ -133,7 +133,7 @@ class RasterCache {
|
||||
explicit RasterCache(
|
||||
size_t access_threshold = 3,
|
||||
size_t picture_and_display_list_cache_limit_per_frame =
|
||||
RasterCacheUtil::kDefaultPictureAndDispLayListCacheLimitPerFrame);
|
||||
RasterCacheUtil::kDefaultPictureAndDisplayListCacheLimitPerFrame);
|
||||
|
||||
virtual ~RasterCache() = default;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ struct RasterCacheUtil {
|
||||
// generated per frame. Generating too many caches in one frame may cause jank
|
||||
// on that frame. This limit allows us to throttle the cache and distribute
|
||||
// the work across multiple frames.
|
||||
static constexpr int kDefaultPictureAndDispLayListCacheLimitPerFrame = 3;
|
||||
static constexpr int kDefaultPictureAndDisplayListCacheLimitPerFrame = 3;
|
||||
|
||||
// The ImageFilterLayer might cache the filtered output of this layer
|
||||
// if the layer remains stable (if it is not animating for instance).
|
||||
|
||||
@@ -55,7 +55,7 @@ class MockRasterCache : public RasterCache {
|
||||
explicit MockRasterCache(
|
||||
size_t access_threshold = 3,
|
||||
size_t picture_and_display_list_cache_limit_per_frame =
|
||||
RasterCacheUtil::kDefaultPictureAndDispLayListCacheLimitPerFrame)
|
||||
RasterCacheUtil::kDefaultPictureAndDisplayListCacheLimitPerFrame)
|
||||
: RasterCache(access_threshold,
|
||||
picture_and_display_list_cache_limit_per_frame) {
|
||||
preroll_state_stack_.set_preroll_delegate(SkMatrix::I());
|
||||
|
||||
Reference in New Issue
Block a user