summaryrefslogtreecommitdiffstats
path: root/libs/hwui/Extensions.h
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2013-06-13 14:29:40 -0700
committerRomain Guy <romainguy@google.com>2013-06-13 14:58:32 -0700
commit7f4307668b10467ee39d41c7ea29cf1ff238a835 (patch)
tree83fdf6fec84c510d33d62c6348e86b821cd996ea /libs/hwui/Extensions.h
parent405436021da156fbe3c5d4de48bdefa564cf7fc0 (diff)
downloadframeworks_base-7f4307668b10467ee39d41c7ea29cf1ff238a835.zip
frameworks_base-7f4307668b10467ee39d41c7ea29cf1ff238a835.tar.gz
frameworks_base-7f4307668b10467ee39d41c7ea29cf1ff238a835.tar.bz2
Add new Query class for debugging
This class can be used to perform occlusion queries. An occlusion query can be used to test whether an object is entirely hidden or not. Change-Id: Ida456df81dbe008a64d3ff4cb7879340785c6abf
Diffstat (limited to 'libs/hwui/Extensions.h')
-rw-r--r--libs/hwui/Extensions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Extensions.h b/libs/hwui/Extensions.h
index 3112244..5e574a6 100644
--- a/libs/hwui/Extensions.h
+++ b/libs/hwui/Extensions.h
@@ -42,6 +42,10 @@ public:
inline bool has4BitStencil() const { return mHas4BitStencil; }
inline bool hasNvSystemTime() const { return mHasNvSystemTime; }
+ inline bool hasPixelBufferObjects() const { return mVersionMajor >= 3; }
+ inline bool hasOcclusionQueries() const { return mVersionMajor >= 3; }
+ inline bool hasFloatTextures() const { return mVersionMajor >= 3; }
+
inline int getMajorGlVersion() const { return mVersionMajor; }
inline int getMinorGlVersion() const { return mVersionMinor; }