Expose API to clear texture atlas

Using canvases on Electron (and plain Chromium I believe), when resuming
from sleep the graphics card may release the texture which results in
the terminal display and char atlas being corrupt. This API allows the
consumer to clear the texture atlas right after resuming, atlas warm up
is not done to simplify this process because the fact that atlases are
shared between multiple terminals complicates this.

Related microsoft/vscode#69665
This commit is contained in:
Daniel Imms
2020-09-06 14:50:09 -07:00
parent ecfc7336c5
commit e07b9684bb
6 changed files with 39 additions and 11 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export abstract class BaseCharAtlas implements IDisposable {
* Perform any work needed to warm the cache before it can be used. Used by the default
* implementation of warmUp(), and will only be called once.
*/
protected _doWarmUp(): void { }
private _doWarmUp(): void { }
/**
* Called when we start drawing a new frame.