From 87f9df880e4a5bfba65d2ed413b3ead649595129 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Fri, 7 Mar 2014 14:34:42 -0800 Subject: [PATCH] Update tessellation tracing Change-Id: I6c73f2467817412d9936dde217df9938a6884003 --- libs/hwui/PathTessellator.cpp | 2 +- libs/hwui/ShadowTessellator.cpp | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libs/hwui/PathTessellator.cpp b/libs/hwui/PathTessellator.cpp index cc56333f3081a..4ef215899aaa0 100644 --- a/libs/hwui/PathTessellator.cpp +++ b/libs/hwui/PathTessellator.cpp @@ -16,7 +16,7 @@ #define LOG_TAG "OpenGLRenderer" #define LOG_NDEBUG 1 -#define ATRACE_TAG ATRACE_TAG_GRAPHICS +#define ATRACE_TAG ATRACE_TAG_VIEW #define VERTEX_DEBUG 0 diff --git a/libs/hwui/ShadowTessellator.cpp b/libs/hwui/ShadowTessellator.cpp index 526772b8858cb..5469aad11963b 100644 --- a/libs/hwui/ShadowTessellator.cpp +++ b/libs/hwui/ShadowTessellator.cpp @@ -15,9 +15,11 @@ */ #define LOG_TAG "OpenGLRenderer" +#define ATRACE_TAG ATRACE_TAG_VIEW #include #include +#include #include "AmbientShadow.h" #include "ShadowTessellator.h" @@ -34,6 +36,8 @@ static inline T max(T a, T b) { void ShadowTessellator::tessellateAmbientShadow(const Vector3* casterPolygon, int casterVertexCount, const Vector3& centroid3d, VertexBuffer& shadowVertexBuffer) { + ATRACE_CALL(); + // A bunch of parameters to tweak the shadow. // TODO: Allow some of these changable by debug settings or APIs. const float heightFactor = 128; @@ -47,6 +51,8 @@ void ShadowTessellator::tessellateAmbientShadow(const Vector3* casterPolygon, void ShadowTessellator::tessellateSpotShadow(const Vector3* casterPolygon, int casterVertexCount, const Vector3& lightPosScale, const mat4& receiverTransform, int screenWidth, int screenHeight, VertexBuffer& shadowVertexBuffer) { + ATRACE_CALL(); + // A bunch of parameters to tweak the shadow. // TODO: Allow some of these changable by debug settings or APIs. int maximal = max(screenWidth, screenHeight);