commit | 0929c097810536dbaf6353b924b784b8fa17e548 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Mon May 22 21:59:36 2017 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon May 22 21:59:39 2017 +0000 |
tree | 80eb029e08f8d3defee57011f3345f4c8089818f | |
parent | 9b8c084f7c2ed18330ef38e5f42bc8e5cf505fe3 [diff] | |
parent | add458feee2faa82ddd3e6450fbb4df70ddeea0d [diff] |
Merge "Surface: Do not copy back if front and back buffer are identical"
diff --git a/libs/gui/Surface.cpp b/libs/gui/Surface.cpp index ff0a5d4..94d8578 100644 --- a/libs/gui/Surface.cpp +++ b/libs/gui/Surface.cpp
@@ -1518,6 +1518,9 @@ const Region& reg, int *dstFenceFd) { + if (dst->getId() == src->getId()) + return OK; + // src and dst with, height and format must be identical. no verification // is done here. status_t err;