This commit is contained in:
Nayuta403
2022-09-23 06:11:51 +08:00
committed by GitHub
parent b3408916b1
commit 4cf8312021
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class FrameDamage {
// Adds additional damage (accumulated for double / triple buffering).
// This is area that will be repainted alongside any changed part.
void AddAdditonalDamage(const SkIRect& damage) {
void AddAdditionalDamage(const SkIRect& damage) {
additional_damage_.join(damage);
}

View File

@@ -551,7 +551,7 @@ RasterStatus Rasterizer::DrawToSurfaceUnsafe(
damage = std::make_unique<FrameDamage>();
if (frame->framebuffer_info().existing_damage && !force_full_repaint) {
damage->SetPreviousLayerTree(last_layer_tree_.get());
damage->AddAdditonalDamage(*frame->framebuffer_info().existing_damage);
damage->AddAdditionalDamage(*frame->framebuffer_info().existing_damage);
damage->SetClipAlignment(
frame->framebuffer_info().horizontal_clip_alignment,
frame->framebuffer_info().vertical_clip_alignment);