Code Review
/
apps
/
agl-service-windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix the race condition of HomeScreen
[apps/agl-service-windowmanager.git]
/
src
/
layers.hpp
diff --git
a/src/layers.hpp
b/src/layers.hpp
index
a8ab2cc
..
adfd733
100644
(file)
--- a/
src/layers.hpp
+++ b/
src/layers.hpp
@@
-114,11
+114,14
@@
struct layer_map
}
json to_json() const;
}
json to_json() const;
- void setupArea(int output_w, int output_h);
compositor::rect getAreaSize(const std::string &area);
compositor::rect getAreaSize(const std::string &area);
+ const compositor::rect getScaleDestRect(int output_w, int output_h, const std::string &aspect_setting);
+ int loadAreaDb();
private:
std::unordered_map<std::string, compositor::rect> area2size;
private:
std::unordered_map<std::string, compositor::rect> area2size;
+
+ static const char *kDefaultAreaDb;
};
struct result<struct layer_map> to_layer_map(nlohmann::json const &j);
};
struct result<struct layer_map> to_layer_map(nlohmann::json const &j);