This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] Introduce StyleUpdateParameters
- Loading branch information
1 parent
f27c28b
commit 40ebf5d
Showing
6 changed files
with
91 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#ifndef STYLE_UPDATE_PARAMETERS | ||
#define STYLE_UPDATE_PARAMETERS | ||
|
||
#include <mbgl/map/mode.hpp> | ||
|
||
namespace mbgl { | ||
|
||
class TransformState; | ||
class Worker; | ||
class TexturePool; | ||
class MapData; | ||
class Style; | ||
|
||
class StyleUpdateParameters { | ||
public: | ||
StyleUpdateParameters(float pixelRatio_, | ||
MapDebugOptions debugOptions_, | ||
TimePoint animationTime_, | ||
const TransformState& transformState_, | ||
Worker& worker_, | ||
TexturePool& texturePool_, | ||
bool shouldReparsePartialTiles_, | ||
MapData& data_, | ||
Style& style_) | ||
: pixelRatio(pixelRatio_), | ||
debugOptions(debugOptions_), | ||
animationTime(animationTime_), | ||
transformState(transformState_), | ||
worker(worker_), | ||
texturePool(texturePool_), | ||
shouldReparsePartialTiles(shouldReparsePartialTiles_), | ||
data(data_), | ||
style(style_) {} | ||
|
||
float pixelRatio; | ||
MapDebugOptions debugOptions; | ||
TimePoint animationTime; | ||
const TransformState& transformState; | ||
Worker& worker; | ||
TexturePool& texturePool; | ||
bool shouldReparsePartialTiles; | ||
|
||
// TODO: remove | ||
MapData& data; | ||
Style& style; | ||
}; | ||
|
||
} | ||
|
||
#endif |