[core] cache binary shaders on Android
This commit is contained in:
@@ -1,15 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class ProgramParameters {
|
||||
public:
|
||||
ProgramParameters(float pixelRatio_ = 1.0, bool overdraw_ = false)
|
||||
: pixelRatio(pixelRatio_),
|
||||
overdraw(overdraw_) {}
|
||||
ProgramParameters(float pixelRatio_ = 1.0,
|
||||
bool overdraw_ = false,
|
||||
const std::string& cacheDir_ = "")
|
||||
: pixelRatio(pixelRatio_), overdraw(overdraw_), cacheDir(cacheDir_) {
|
||||
}
|
||||
|
||||
float pixelRatio;
|
||||
bool overdraw;
|
||||
const float pixelRatio;
|
||||
const bool overdraw;
|
||||
const std::string cacheDir;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
|
||||
Reference in New Issue
Block a user