summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Extensions.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/Extensions.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/Extensions.h')
-rw-r--r--libs/hwui/Extensions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/Extensions.h b/libs/hwui/Extensions.h
index 1069e3f..f11fecc 100644
--- a/libs/hwui/Extensions.h
+++ b/libs/hwui/Extensions.h
@@ -67,6 +67,7 @@ public:
mHasNPot = hasExtension("GL_OES_texture_npot");
mHasFramebufferFetch = hasExtension("GL_NV_shader_framebuffer_fetch");
mHasDiscardFramebuffer = hasExtension("GL_EXT_discard_framebuffer");
+ mHasDebugMarker = hasExtension("GL_EXT_debug_marker");
const char* vendor = (const char*) glGetString(GL_VENDOR);
EXT_LOGD("Vendor: %s", vendor);
@@ -82,6 +83,7 @@ public:
inline bool hasFramebufferFetch() const { return mHasFramebufferFetch; }
inline bool needsHighpTexCoords() const { return mNeedsHighpTexCoords; }
inline bool hasDiscardFramebuffer() const { return mHasDiscardFramebuffer; }
+ inline bool hasDebugMarker() const { return mHasDebugMarker; }
bool hasExtension(const char* extension) const {
const String8 s(extension);
@@ -101,6 +103,7 @@ private:
bool mNeedsHighpTexCoords;
bool mHasFramebufferFetch;
bool mHasDiscardFramebuffer;
+ bool mHasDebugMarker;
}; // class Extensions
}; // namespace uirenderer