From a0f78e4dfa60543411cca2b6f94e167330e4779d Mon Sep 17 00:00:00 2001 From: nayuta <762579473@qq.com> Date: Wed, 1 Mar 2023 15:01:43 +0800 Subject: [PATCH 1/3] fix typo --- flow/raster_cache.h | 2 +- flow/raster_cache_util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/raster_cache.h b/flow/raster_cache.h index 38a026aa360fb..27ac86ebd0744 100644 --- a/flow/raster_cache.h +++ b/flow/raster_cache.h @@ -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; diff --git a/flow/raster_cache_util.h b/flow/raster_cache_util.h index 18019fc83192f..45d35cb7054e8 100644 --- a/flow/raster_cache_util.h +++ b/flow/raster_cache_util.h @@ -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). From 29fb1a4b6d72f4dd8bb090e178c7fcbfee5de0c0 Mon Sep 17 00:00:00 2001 From: nayuta <762579473@qq.com> Date: Wed, 1 Mar 2023 21:14:37 +0800 Subject: [PATCH 2/3] fix typo --- flow/layers/display_list_layer_unittests.cc | 2 +- flow/testing/mock_raster_cache.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flow/layers/display_list_layer_unittests.cc b/flow/layers/display_list_layer_unittests.cc index 8a5d1a935f13b..4a5df49fea709 100644 --- a/flow/layers/display_list_layer_unittests.cc +++ b/flow/layers/display_list_layer_unittests.cc @@ -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(0.5f, opacity_offset); diff --git a/flow/testing/mock_raster_cache.h b/flow/testing/mock_raster_cache.h index 79615cf77230a..ba0b8e6b1199e 100644 --- a/flow/testing/mock_raster_cache.h +++ b/flow/testing/mock_raster_cache.h @@ -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()); From feea89643440869996d682e4bea11cecfe8f2fe7 Mon Sep 17 00:00:00 2001 From: nayuta <762579473@qq.com> Date: Thu, 2 Mar 2023 12:00:51 +0800 Subject: [PATCH 3/3] DisPlay -> Display --- flow/layers/display_list_layer_unittests.cc | 2 +- flow/raster_cache.h | 2 +- flow/raster_cache_util.h | 2 +- flow/testing/mock_raster_cache.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flow/layers/display_list_layer_unittests.cc b/flow/layers/display_list_layer_unittests.cc index 4a5df49fea709..5d4b633d7eba8 100644 --- a/flow/layers/display_list_layer_unittests.cc +++ b/flow/layers/display_list_layer_unittests.cc @@ -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(0.5f, opacity_offset); diff --git a/flow/raster_cache.h b/flow/raster_cache.h index 27ac86ebd0744..c66cf3eeac2ab 100644 --- a/flow/raster_cache.h +++ b/flow/raster_cache.h @@ -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; diff --git a/flow/raster_cache_util.h b/flow/raster_cache_util.h index 45d35cb7054e8..795174da92c17 100644 --- a/flow/raster_cache_util.h +++ b/flow/raster_cache_util.h @@ -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). diff --git a/flow/testing/mock_raster_cache.h b/flow/testing/mock_raster_cache.h index ba0b8e6b1199e..beb42d26762ce 100644 --- a/flow/testing/mock_raster_cache.h +++ b/flow/testing/mock_raster_cache.h @@ -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());