8000 fix typo by Nayuta403 · Pull Request #39971 · flutter/engine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

fix typo #39971

Merged
merged 5 commits into from
Mar 2, 2023
Merged

fix typo #39971

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flow/layers/display_list_layer_unittests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion flow/raster_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion flow/raster_cache_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion flow/testing/mock_raster_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
0