MingaEditor.Renderer.Caches (Minga v0.1.0)

Copy Markdown View Source

Explicit render-pipeline cache state retained by the renderer.

Summary

Types

t()

@type t() :: %MingaEditor.Renderer.Caches{
  adapter_gui_caches: Minga.Frontend.Adapter.GUI.Caches.t(),
  chrome_prev_fingerprint: integer() | nil,
  chrome_prev_result: term(),
  cmd_hover_link_cache: term(),
  doc_highlight_cache: term(),
  frame_render_path: :patch | :full,
  frame_rows_rasterized: non_neg_integer(),
  last_acknowledged_frame_seq: non_neg_integer(),
  last_emitted_frame_seq: non_neg_integer(),
  last_frame_keyframe?: boolean(),
  last_link_cursor: boolean() | nil,
  last_title: String.t() | nil,
  last_window_bg: non_neg_integer() | nil,
  recovery_generation: non_neg_integer(),
  search_decoration_cache: term()
}

Functions

acknowledge_frame(caches, frame_seq, generation)

@spec acknowledge_frame(t(), non_neg_integer(), non_neg_integer()) :: t()

add_frame_rows_rasterized(caches, count)

@spec add_frame_rows_rasterized(t(), non_neg_integer()) :: t()

new()

@spec new() :: t()

record_chrome_result(caches, fingerprint, chrome)

@spec record_chrome_result(t(), integer(), term()) :: t()

record_content_decoration_caches(caches, search_decoration_cache, doc_highlight_cache, cmd_hover_link_cache)

@spec record_content_decoration_caches(t(), term(), term(), term()) :: t()

record_frame_render_path(caches, path)

@spec record_frame_render_path(t(), :patch | :full) :: t()

reset_frame_rows_rasterized(caches)

@spec reset_frame_rows_rasterized(t()) :: t()

reset_frontend_state(caches)

@spec reset_frontend_state(t()) :: t()