Skip to content

Commit 820ee19

Browse files
WAR: temporarily disable partial repaints (sony#388)
This change disables the partial repaints temporarily because of the flicker issue. Once the root cause in flutter/engine was fixed and its change propagated to the stable channel, this will be lifted up. See sony#334 for the details. Signed-off-by: Hidenori Matsubayashi <[email protected]>
1 parent ac2a2c6 commit 820ee19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/flutter/shell/platform/linux_embedded/surface/elinux_egl_surface.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ void ELinuxEGLSurface::PopulateExistingDamage(const intptr_t fbo_id,
168168
0, 0, static_cast<double>(width_px_), static_cast<double>(height_px_)};
169169
existing_damage->damage = existing_damage_map_[fbo_id];
170170

171+
// Temporarily disabled partial repaints due to
172+
// https://github.com/sony/flutter-embedded-linux/issues/334. Once
173+
// https://github.com/flutter/engine/pull/45611 was merged and propagated to
174+
// the stable channel, this will be lifted up.
175+
#if 0
171176
if (age > 1) {
172177
--age;
173178
// join up to (age - 1) last rects from damage history
@@ -191,6 +196,7 @@ void ELinuxEGLSurface::PopulateExistingDamage(const intptr_t fbo_id,
191196
}
192197
}
193198
}
199+
#endif
194200
}
195201

196202
// Auxiliary function used to transform a FlutterRect into the format that is

0 commit comments

Comments
 (0)