aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-20 14:40:44 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-20 14:40:44 +0900
commit66318aeba09afafc5cc2a476d1db4d5765f38d58 (patch)
treef72a4e2810080b7da1b13858c0f5a87efb6993b5
parent0b3e861b1624eb9ff4b488724add8d01eb90bab2 (diff)
Remove flushdraw pending API
These function and variable are not used anymore Change-Id: Ice1d07e4192c15fe0131af9ed884190c465d7b12 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/app.cpp23
-rw-r--r--src/app.hpp7
2 files changed, 0 insertions, 30 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 746a8ff..c9bb103 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -897,29 +897,6 @@ void App::api_deactivate_surface(char const *appid, char const *drawing_name,
}
}
-void App::enqueue_flushdraw(int surface_id)
-{
- this->check_flushdraw(surface_id);
- HMI_DEBUG("wm", "Enqueuing EndDraw for surface_id %d", surface_id);
- this->pending_end_draw.push_back(surface_id);
-}
-
-void App::check_flushdraw(int surface_id)
-{
- auto i = std::find(std::begin(this->pending_end_draw),
- std::end(this->pending_end_draw), surface_id);
- if (i != std::end(this->pending_end_draw))
- {
- auto n = this->lookup_name(surface_id);
- HMI_ERROR("wm", "Application %s (%d) has pending EndDraw call(s)!",
- n ? n->c_str() : "unknown-name", surface_id);
- std::swap(this->pending_end_draw[std::distance(
- std::begin(this->pending_end_draw), i)],
- this->pending_end_draw.back());
- this->pending_end_draw.resize(this->pending_end_draw.size() - 1);
- }
-}
-
WMError App::doEndDraw(unsigned req_num)
{
// get actions
diff --git a/src/app.hpp b/src/app.hpp
index 14dbca3..f2cc8a1 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -76,7 +76,6 @@ struct id_allocator
// Surfaces that where requested but not yet created
std::unordered_map<unsigned, std::string> id2name;
- // std::unordered_set<unsigned> pending_surfaces;
std::unordered_map<std::string, unsigned> name2id;
id_allocator(id_allocator const &) = delete;
@@ -89,7 +88,6 @@ struct id_allocator
{
unsigned sid = this->next++;
this->id2name[sid] = name;
- // this->pending_surfaces.insert({sid});
this->name2id[name] = sid;
HMI_DEBUG("wm", "allocated new id %u with name %s", sid, name.c_str());
return sid;
@@ -192,8 +190,6 @@ struct App
// Set by AFB API when wayland events need to be dispatched
std::atomic<bool> pending_events;
- std::vector<int> pending_end_draw;
-
Policy policy;
std::map<const char *, struct afb_event> map_afb_event;
@@ -246,9 +242,6 @@ struct App
bool pop_pending_events();
- void enqueue_flushdraw(int surface_id);
- void check_flushdraw(int surface_id);
-
int init_layers();
void surface_set_layout(int surface_id, const std::string& area = "");