From 20c24110038ecfd6f5d410d886bd3d79ec07d97b Mon Sep 17 00:00:00 2001 From: Swift Kim Date: Mon, 6 Mar 2023 18:04:13 +0900 Subject: [PATCH] [Tizen] Force full repaint if no damage region was provided --- shell/platform/embedder/embedder.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/shell/platform/embedder/embedder.cc b/shell/platform/embedder/embedder.cc index ec46240990c85..aec311f99304a 100644 --- a/shell/platform/embedder/embedder.cc +++ b/shell/platform/embedder/embedder.cc @@ -339,19 +339,18 @@ InferOpenGLPlatformViewCreationCallback( populate_existing_damage(user_data, id, &existing_damage); bool partial_repaint_enabled = true; - SkIRect existing_damage_rect; + std::optional existing_damage_rect; // Verify that at least one damage rectangle was provided. if (existing_damage.num_rects <= 0 || existing_damage.damage == nullptr) { - FML_LOG(INFO) << "No damage was provided. Forcing full repaint."; - existing_damage_rect = SkIRect::MakeEmpty(); + existing_damage_rect = std::nullopt; partial_repaint_enabled = false; } else if (existing_damage.num_rects > 1) { // Log message notifying users that multi-damage is not yet available in // case they try to make use of it. FML_LOG(INFO) << "Damage with multiple rectangles not yet supported. " "Repainting the whole frame."; - existing_damage_rect = SkIRect::MakeEmpty(); + existing_damage_rect = std::nullopt; partial_repaint_enabled = false; } else { existing_damage_rect = FlutterRectToSkIRect(*(existing_damage.damage));