fix typo
This commit is contained in:
Nayuta403
2023-03-02 17:25:26 +08:00
committed by GitHub
parent 546963ae83
commit 51f3dfb971
4 changed files with 4 additions and 4 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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).

View File

@@ -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());