diff options
author | 2013-06-18 15:53:53 -0700 | |
---|---|---|
committer | 2013-06-18 15:53:53 -0700 | |
commit | 31e08e953fe7bdb1b1cbc247156cb6a19917a2f1 (patch) | |
tree | a9b1d4f934c40a6c1a6e3c32e10451fc323ebaea /libs/hwui/Extensions.cpp | |
parent | 2d5945e88731787babce1061f44cd54f02eeefc5 (diff) |
Share Caches' index buffer with FontRenderer
This reduces state changes when we draw 9patches and text together,
which happens *a lot*. Also disable the NV profiling extension by
default since it doesn't play nice with display lists deferrals.
To enable it set debug.hwui.nv_profiling to true.
Change-Id: I518b44b7d294e5def10c78911ceb9f01ae401609
Diffstat (limited to 'libs/hwui/Extensions.cpp')
-rw-r--r-- | libs/hwui/Extensions.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/hwui/Extensions.cpp b/libs/hwui/Extensions.cpp index eefdb84db6d8..218c18ee16df 100644 --- a/libs/hwui/Extensions.cpp +++ b/libs/hwui/Extensions.cpp @@ -26,6 +26,7 @@ #include "Debug.h" #include "Extensions.h" +#include "Properties.h" namespace android { @@ -63,7 +64,13 @@ Extensions::Extensions(): Singleton<Extensions>() { // Query EGL extensions findExtensions(eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS), mEglExtensionList); - mHasNvSystemTime = hasEglExtension("EGL_NV_system_time"); + + char property[PROPERTY_VALUE_MAX]; + if (property_get(PROPERTY_DEBUG_NV_PROFILING, property, NULL) > 0) { + mHasNvSystemTime = !strcmp(property, "true") && hasEglExtension("EGL_NV_system_time"); + } else { + mHasNvSystemTime = false; + } const char* version = (const char*) glGetString(GL_VERSION); |