From 85549e4a36e71cbfaf64c505563b4204ec787370 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 26 Nov 2023 16:49:52 -0500 Subject: [PATCH] Add texture streaming experiment flag --- src/app/core/common.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/core/common.h b/src/app/core/common.h index 1b255ade..c8c4e699 100644 --- a/src/app/core/common.h +++ b/src/app/core/common.h @@ -48,6 +48,8 @@ class ExperimentFlags { // Platform specific loading of fonts from the system. Currently // only supports macOS. bool kLoadSystemFonts = true; + + bool kLoadTexturesAsStreaming = false; }; ExperimentFlags() = default; @@ -139,7 +141,6 @@ class TaskManager { public: TaskManager() = default; ~TaskManager() = default; - using TaskFunction = std::function; TaskManager(int totalTasks, int timeoutSeconds) : total_tasks_(totalTasks), @@ -168,6 +169,7 @@ class TaskManager { } bool IsTaskComplete() const { return task_complete_; } + void SetTimeout(int timeout) { timeout_seconds_ = timeout; } private: int total_tasks_;