@overwolf/ow-electron-packages-types 1.1.5-beta.7 → 1.1.5-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +34 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@overwolf/ow-electron-packages-types",
3
- "version": "1.1.5-beta.7",
3
+ "version": "1.1.5-beta.8",
4
4
  "description": "Type definition file for autocompletion and documentation purposes for ow-electron packages",
5
5
  "license": "MIT",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -5052,6 +5052,33 @@ interface OverlayWindowOptions
5052
5052
  */
5053
5053
  disableHardwareAcceleration?: boolean;
5054
5054
 
5055
+ /**
5056
+ * ⚠️ BETA — this option is experimental and its behavior may change in
5057
+ * a future release.
5058
+ *
5059
+ * `true`—renders this overlay window through a GPU shared texture
5060
+ * instead of copying pixels through shared memory on every paint. The overlay
5061
+ * forwards the GPU texture handle directly to the injected game process, which
5062
+ * composites it without any CPU-side pixel copy, significantly lowering
5063
+ * per-frame CPU overhead.
5064
+ *
5065
+ * Requires hardware acceleration to be enabled and the current game to report
5066
+ * shared-texture support (see {@link GameWindowInfo.isSharedTextureSupported}).
5067
+ * The flag is silently ignored when either condition is not met, falling back
5068
+ * to the shared-memory (CPU copy) path.
5069
+ *
5070
+ * The rendering path follows the active game: when the overlay moves to a
5071
+ * different game, a shared-texture window automatically falls back to the
5072
+ * shared-memory (CPU copy) path on a game that does not support shared
5073
+ * texture, and restores the shared-texture path on a game that does — so the
5074
+ * window stays visible on every game.
5075
+ *
5076
+ * @default false
5077
+ *
5078
+ * @since 2.0.2
5079
+ */
5080
+ useSharedTexture?: boolean;
5081
+
5055
5082
  /**
5056
5083
  * Enables Chromium process isolation (sandboxing).
5057
5084
  * Used to enforce stricter security policies or prevent resource sharing between renderer processes.
@@ -5400,11 +5427,17 @@ interface GameWindowInfo {
5400
5427
 
5401
5428
  /**
5402
5429
  * Indicates if fullscreen rendering is disabled.
5403
- *
5430
+ *
5404
5431
  * Relevant only for OOPO games.
5405
5432
  * @since 1.9.0
5406
5433
  */
5407
5434
  readonly isOOPOFullscreenRenderingDisabled?: boolean;
5435
+
5436
+ /**
5437
+ * Indicates if the game supports shared-texture (GPU) overlay rendering.
5438
+ * @since 2.0.0
5439
+ */
5440
+ readonly isSharedTextureSupported?: boolean;
5408
5441
  }
5409
5442
 
5410
5443
  /**