Skip to content

Commit

Permalink
Optimize performance by deferring the rasterization of paths and exec…
Browse files Browse the repository at this point in the history
…uting them concurrently.
  • Loading branch information
domchen committed Jan 13, 2024
1 parent 43151c4 commit 2f186bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
{
"url": "${PAG_GROUP}/tgfx.git",
"commit": "17bed1f51dcf94445248f4e2830fe6260028bb21",
"commit": "c0f39f80256bed1ecb86f8a795bc1adde299bb06",
"dir": "third_party/tgfx"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/rendering/graphics/Picture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class SnapshotPicture : public Picture {
graphic->measureBounds(&bounds);
auto width = static_cast<int>(ceilf(bounds.width() * scaleFactor));
auto height = static_cast<int>(ceilf(bounds.height() * scaleFactor));
tgfx::SurfaceOptions options(tgfx::SurfaceOptions::DisableCacheFlag);
tgfx::SurfaceOptions options(tgfx::RenderFlags::DisableCache);
auto surface =
tgfx::Surface::Make(cache->getContext(), width, height, false, 1, mipMapped, &options);
if (surface == nullptr) {
Expand Down
2 changes: 1 addition & 1 deletion test/baseline/version.json
Original file line number Diff line number Diff line change
Expand Up @@ -7444,7 +7444,7 @@
"0228": "bd2ee44f",
"0229": "bd2ee44f",
"0230": "bd2ee44f",
"0231": "0e678d2f",
"0231": "43151c42",
"0232": "bd2ee44f",
"0233": "24feb8aa",
"0234": "24feb8aa",
Expand Down

0 comments on commit 2f186bd

Please sign in to comment.