summaryrefslogtreecommitdiff
path: root/libacryl
diff options
context:
space:
mode:
authorMidas Chien <midaschieh@google.com>2020-12-10 21:38:38 +0800
committerMidas Chien <midaschieh@google.com>2020-12-11 20:43:02 +0800
commit872821246df6bac6ee58c07562797304a960adab (patch)
treeebbbb6649f993a1ed921f665b6a12ba1eec537f0 /libacryl
parent6132ece5176b49e1da92c6ecceb23bc0e8b8a3ae (diff)
libhwc2.1: trace dpu skip layer count
skipStaticLayer feature is used to skip useless GLES composition in case the client composition layers aren't update. In this case HWC sets composition type to DEVICE. Add trace to know how many layers fall in this case. Also add trace to know how much time to remove FBid. Bug: 174538438 Test: systrace, perfetto trace Change-Id: If35f781122b02d24e75bfbfe37659b4292b618b2
Diffstat (limited to 'libacryl')
-rw-r--r--libacryl/acrylic_g2d.cpp21
1 files changed, 11 insertions, 10 deletions
diff --git a/libacryl/acrylic_g2d.cpp b/libacryl/acrylic_g2d.cpp
index fe5778c..3ac752a 100644
--- a/libacryl/acrylic_g2d.cpp
+++ b/libacryl/acrylic_g2d.cpp
@@ -15,20 +15,20 @@
* limitations under the License.
*/
-#include <cstring>
-#include <alloca.h>
-#include <algorithm>
-
-#include <sys/ioctl.h>
+#define ATRACE_TAG (ATRACE_TAG_GRAPHICS | ATRACE_TAG_HAL)
-#include <system/graphics.h>
-#include <log/log.h>
-
-#include <hardware/hwcomposer2.h>
+#include "acrylic_g2d.h"
+#include <alloca.h>
#include <exynos_format.h> // hardware/smasung_slsi/exynos/include
+#include <hardware/hwcomposer2.h>
+#include <log/log.h>
+#include <sys/ioctl.h>
+#include <system/graphics.h>
+#include <utils/Trace.h>
-#include "acrylic_g2d.h"
+#include <algorithm>
+#include <cstring>
enum {
G2D_CSC_STD_UNDEFINED = -1,
@@ -1028,6 +1028,7 @@ int AcrylicCompositorG2D::ioctlG2D(void)
bool AcrylicCompositorG2D::executeG2D(int fence[], unsigned int num_fences, bool nonblocking)
{
+ ATRACE_CALL();
if (!validateAllLayers())
return false;