OSDN Git Service
(root)
/
android-x86
/
external-IA-Hardware-Composer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8802564
)
Fix a misstike when LogicalDisplaymanager do present
author
yuzhengyang
<yu.zhy@neusoft.com>
Tue, 23 Apr 2019 01:14:46 +0000
(09:14 +0800)
committer
Shaofeng Tang
<shaofeng.tang@intel.com>
Tue, 23 Apr 2019 05:53:08 +0000
(13:53 +0800)
When layers_ is empty, missing reset queued_displays_ to 0
Change-Id: None
Tracked-On: None
Test: test ok!
Signed-off-by: yuzhengyang <yu.zhy@neusoft.com>
common/core/logicaldisplaymanager.cpp
patch
|
blob
|
history
diff --git
a/common/core/logicaldisplaymanager.cpp
b/common/core/logicaldisplaymanager.cpp
index
0473751
..
e2651b4
100644
(file)
--- a/
common/core/logicaldisplaymanager.cpp
+++ b/
common/core/logicaldisplaymanager.cpp
@@
-183,8
+183,10
@@
bool LogicalDisplayManager::Present(std::vector<HwcLayer*>& source_layers,
layers_.insert(layers_.end(), cursor_layers_.begin(), cursor_layers_.end());
- if (layers_.empty())
+ if (layers_.empty()) {
+ queued_displays_ = 0;
return true;
+ }
bool success = physical_display_->Present(layers_, retire_fence, call_back,
handle_constraints);