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] Dynamic program compilation for data-driven properties
- Loading branch information
1 parent
977b55d
commit 8a341aa
Showing
32 changed files
with
292 additions
and
214 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
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 |
---|---|---|
@@ -1,21 +1,24 @@ | ||
#pragma once | ||
|
||
#include <mbgl/util/optional.hpp> | ||
|
||
#include <string> | ||
#include <utility> | ||
#include <vector> | ||
|
||
namespace mbgl { | ||
|
||
class ProgramParameters { | ||
public: | ||
ProgramParameters(float pixelRatio, bool overdraw, std::string cacheDir); | ||
ProgramParameters(float pixelRatio, bool overdraw, optional<std::string> cacheDir); | ||
|
||
const std::string defines; | ||
const std::string& getDefines() const; | ||
optional<std::string> cachePath(const char* name) const; | ||
|
||
std::string cachePath(const char* name) const; | ||
ProgramParameters withAdditionalDefines(const std::vector<std::string>& defines) const; | ||
|
||
private: | ||
const std::size_t hash; | ||
const std::string cacheDir; | ||
std::string defines; | ||
optional<std::string> cacheDir; | ||
}; | ||
|
||
} // namespace mbgl |
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
Oops, something went wrong.