[core] cache binary shaders on Android

This commit is contained in:
Konstantin Käfer
2017-03-15 18:43:58 +01:00
parent d20327844c
commit 3c91b6b7de
29 changed files with 541 additions and 47 deletions

View File

@@ -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