Add texture streaming experiment flag
This commit is contained in:
@@ -48,6 +48,8 @@ class ExperimentFlags {
|
|||||||
// Platform specific loading of fonts from the system. Currently
|
// Platform specific loading of fonts from the system. Currently
|
||||||
// only supports macOS.
|
// only supports macOS.
|
||||||
bool kLoadSystemFonts = true;
|
bool kLoadSystemFonts = true;
|
||||||
|
|
||||||
|
bool kLoadTexturesAsStreaming = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
ExperimentFlags() = default;
|
ExperimentFlags() = default;
|
||||||
@@ -139,7 +141,6 @@ class TaskManager {
|
|||||||
public:
|
public:
|
||||||
TaskManager() = default;
|
TaskManager() = default;
|
||||||
~TaskManager() = default;
|
~TaskManager() = default;
|
||||||
using TaskFunction = std::function<void(int)>;
|
|
||||||
|
|
||||||
TaskManager(int totalTasks, int timeoutSeconds)
|
TaskManager(int totalTasks, int timeoutSeconds)
|
||||||
: total_tasks_(totalTasks),
|
: total_tasks_(totalTasks),
|
||||||
@@ -168,6 +169,7 @@ class TaskManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool IsTaskComplete() const { return task_complete_; }
|
bool IsTaskComplete() const { return task_complete_; }
|
||||||
|
void SetTimeout(int timeout) { timeout_seconds_ = timeout; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int total_tasks_;
|
int total_tasks_;
|
||||||
|
|||||||
Reference in New Issue
Block a user