summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-11-30 13:52:21 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-11-30 13:52:21 -0800
commite8ba2aba934e3767d2081007bba93bad68566d22 (patch)
treee92577a6a3bd1109f7e50e7ed5f647cd1c9010f4 /services
parent865b98024fb5fa21854feb578b8816bbb72120ba (diff)
parentcadd325aff7354be23d3bccb4f53b603f1506c9f (diff)
downloadframeworks_base-e8ba2aba934e3767d2081007bba93bad68566d22.zip
frameworks_base-e8ba2aba934e3767d2081007bba93bad68566d22.tar.gz
frameworks_base-e8ba2aba934e3767d2081007bba93bad68566d22.tar.bz2
Merge "add a way to access the version string of the h/w implementation of EGL" into ics-mr1
Diffstat (limited to 'services')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 1b00e93..f38e948 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -65,6 +65,8 @@
#define AID_GRAPHICS 1003
#endif
+#define EGL_VERSION_HW_ANDROID 0x3143
+
#define DISPLAY_COUNT 1
namespace android {
@@ -1527,7 +1529,7 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
* Dump the layers in the purgatory
*/
- const size_t purgatorySize = mLayerPurgatory.size();
+ const size_t purgatorySize = mLayerPurgatory.size();
snprintf(buffer, SIZE, "Purgatory state (%d entries)\n", purgatorySize);
result.append(buffer);
for (size_t i=0 ; i<purgatorySize ; i++) {
@@ -1548,6 +1550,12 @@ status_t SurfaceFlinger::dump(int fd, const Vector<String16>& args)
extensions.getRenderer(),
extensions.getVersion());
result.append(buffer);
+
+ snprintf(buffer, SIZE, "EGL : %s\n",
+ eglQueryString(graphicPlane(0).getEGLDisplay(),
+ EGL_VERSION_HW_ANDROID));
+ result.append(buffer);
+
snprintf(buffer, SIZE, "EXTS: %s\n", extensions.getExtension());
result.append(buffer);