summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Extensions.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-05-12 16:18:58 -0700
committerRomain Guy <romainguy@google.com>2012-05-12 16:22:35 -0700
commitdfa1046ecab165eb0daf5caa8475e993350f4a2b (patch)
tree90cf67b49d82feaad76749749c38c59239bc2b08 /libs/hwui/Extensions.h
parent2d97a70ff8bbac5ea807003d65b64e3b255e82bc (diff)
downloadframeworks_base-dfa1046ecab165eb0daf5caa8475e993350f4a2b.zip
frameworks_base-dfa1046ecab165eb0daf5caa8475e993350f4a2b.tar.gz
frameworks_base-dfa1046ecab165eb0daf5caa8475e993350f4a2b.tar.bz2
Add call sites for OpenGL's debug label extension
Change-Id: I9c689127e8166cbef92c935f8aa07217ab806dda
Diffstat (limited to 'libs/hwui/Extensions.h')
-rw-r--r--libs/hwui/Extensions.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/Extensions.h b/libs/hwui/Extensions.h
index f11fecc..6b174d6 100644
--- a/libs/hwui/Extensions.h
+++ b/libs/hwui/Extensions.h
@@ -40,7 +40,6 @@ namespace uirenderer {
#endif
// Vendor strings
-
#define VENDOR_IMG "Imagination Technologies"
///////////////////////////////////////////////////////////////////////////////
@@ -68,6 +67,7 @@ public:
mHasFramebufferFetch = hasExtension("GL_NV_shader_framebuffer_fetch");
mHasDiscardFramebuffer = hasExtension("GL_EXT_discard_framebuffer");
mHasDebugMarker = hasExtension("GL_EXT_debug_marker");
+ mHasDebugLabel = hasExtension("GL_EXT_debug_label");
const char* vendor = (const char*) glGetString(GL_VENDOR);
EXT_LOGD("Vendor: %s", vendor);
@@ -84,6 +84,7 @@ public:
inline bool needsHighpTexCoords() const { return mNeedsHighpTexCoords; }
inline bool hasDiscardFramebuffer() const { return mHasDiscardFramebuffer; }
inline bool hasDebugMarker() const { return mHasDebugMarker; }
+ inline bool hasDebugLabel() const { return mHasDebugLabel; }
bool hasExtension(const char* extension) const {
const String8 s(extension);
@@ -104,6 +105,7 @@ private:
bool mHasFramebufferFetch;
bool mHasDiscardFramebuffer;
bool mHasDebugMarker;
+ bool mHasDebugLabel;
}; // class Extensions
}; // namespace uirenderer