summaryrefslogtreecommitdiffstats
path: root/libs/hwui/DisplayListRenderer.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-01-30 17:41:55 -0800
committerRomain Guy <romainguy@google.com>2012-01-30 17:41:55 -0800
commit13631f3da855f200a151e7837ed9f6b079622b58 (patch)
treeca21323b115baaa572ba94428e58283e0b6afeef /libs/hwui/DisplayListRenderer.h
parent275345b0871c6b269709c3d6a25d9fae03f7922a (diff)
downloadframeworks_base-13631f3da855f200a151e7837ed9f6b079622b58.zip
frameworks_base-13631f3da855f200a151e7837ed9f6b079622b58.tar.gz
frameworks_base-13631f3da855f200a151e7837ed9f6b079622b58.tar.bz2
Add debug markers to OpenGLRenderer
These markers will be used to group the GL commands by View in the OpenGL ES debugging tool. This will help correlate individual GL calls to higher level components like Views. Change-Id: I73607ba2e7224a80ac32527968261ee008f049c6
Diffstat (limited to 'libs/hwui/DisplayListRenderer.h')
-rw-r--r--libs/hwui/DisplayListRenderer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h
index 6fe4205..46506e4 100644
--- a/libs/hwui/DisplayListRenderer.h
+++ b/libs/hwui/DisplayListRenderer.h
@@ -28,6 +28,8 @@
#include <cutils/compiler.h>
+#include <utils/String8.h>
+
#include "DisplayListLogBuffer.h"
#include "OpenGLRenderer.h"
#include "utils/Functor.h"
@@ -128,6 +130,12 @@ public:
return mIsRenderable;
}
+ void setName(const char* name) {
+ if (name) {
+ mName.setTo(name);
+ }
+ }
+
private:
void init();
@@ -224,6 +232,8 @@ private:
size_t mSize;
bool mIsRenderable;
+
+ String8 mName;
};
///////////////////////////////////////////////////////////////////////////////