GraphicsSystem Save/Restore

This commit is contained in:
Dr. Chat
2015-12-07 10:55:30 -06:00
committed by Ben Vanik
parent 9ed81b6876
commit 6997970d52
5 changed files with 113 additions and 1 deletions

View File

@@ -61,6 +61,13 @@ class GraphicsSystem {
void BeginTracing();
void EndTracing();
bool is_paused() const { return paused_; }
void Pause();
void Resume();
bool Save(ByteStream* stream);
bool Restore(ByteStream* stream);
protected:
GraphicsSystem();
@@ -90,6 +97,8 @@ class GraphicsSystem {
RegisterFile register_file_;
std::unique_ptr<CommandProcessor> command_processor_;
bool paused_ = false;
};
} // namespace gpu