Add layer tracing tags in new pipeline

bug:28596354

Change-Id: I351cb50c8c9ddfc73be73d28a1af94d2a8f9992e
diff --git a/libs/hwui/renderstate/OffscreenBufferPool.cpp b/libs/hwui/renderstate/OffscreenBufferPool.cpp
index 73b6c02..10a26e0 100644
--- a/libs/hwui/renderstate/OffscreenBufferPool.cpp
+++ b/libs/hwui/renderstate/OffscreenBufferPool.cpp
@@ -20,6 +20,7 @@
 #include "Properties.h"
 #include "renderstate/RenderState.h"
 #include "utils/FatVector.h"
+#include "utils/TraceUtils.h"
 
 #include <utils/Log.h>
 
@@ -41,6 +42,7 @@
         , texture(caches) {
     uint32_t width = computeIdealDimension(viewportWidth);
     uint32_t height = computeIdealDimension(viewportHeight);
+    ATRACE_FORMAT("Allocate %ux%u HW Layer", width, height);
     caches.textureState().activateTexture(0);
     texture.resize(width, height, GL_RGBA);
     texture.blend = true;
@@ -101,6 +103,7 @@
 }
 
 OffscreenBuffer::~OffscreenBuffer() {
+    ATRACE_FORMAT("Destroy %ux%u HW Layer", texture.width(), texture.height());
     texture.deleteTexture();
     renderState.meshState().deleteMeshBuffer(vbo);
     elementCount = 0;