diff options
Diffstat (limited to 'libs/hwui/Extensions.cpp')
| -rw-r--r-- | libs/hwui/Extensions.cpp | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/libs/hwui/Extensions.cpp b/libs/hwui/Extensions.cpp index 84e7e65..2a82216 100644 --- a/libs/hwui/Extensions.cpp +++ b/libs/hwui/Extensions.cpp @@ -16,18 +16,16 @@ #define LOG_TAG "OpenGLRenderer" -#include <GLES2/gl2.h> -#include <GLES2/gl2ext.h> +#include "Extensions.h" + +#include "Debug.h" +#include "Properties.h" #include <EGL/egl.h> #include <EGL/eglext.h> - +#include <GLES2/gl2ext.h> #include <utils/Log.h> -#include "Debug.h" -#include "Extensions.h" -#include "Properties.h" - namespace android { using namespace uirenderer; @@ -50,14 +48,13 @@ namespace uirenderer { // Constructors /////////////////////////////////////////////////////////////////////////////// -Extensions::Extensions(): Singleton<Extensions>() { +Extensions::Extensions() { // Query GL extensions findExtensions((const char*) glGetString(GL_EXTENSIONS), mGlExtensionList); mHasNPot = hasGlExtension("GL_OES_texture_npot"); mHasFramebufferFetch = hasGlExtension("GL_NV_shader_framebuffer_fetch"); mHasDiscardFramebuffer = hasGlExtension("GL_EXT_discard_framebuffer"); mHasDebugMarker = hasGlExtension("GL_EXT_debug_marker"); - mHasDebugLabel = hasGlExtension("GL_EXT_debug_label"); mHasTiledRendering = hasGlExtension("GL_QCOM_tiled_rendering"); mHas1BitStencil = hasGlExtension("GL_OES_stencil1"); mHas4BitStencil = hasGlExtension("GL_OES_stencil4"); @@ -66,7 +63,7 @@ Extensions::Extensions(): Singleton<Extensions>() { findExtensions(eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS), mEglExtensionList); char property[PROPERTY_VALUE_MAX]; - if (property_get(PROPERTY_DEBUG_NV_PROFILING, property, NULL) > 0) { + if (property_get(PROPERTY_DEBUG_NV_PROFILING, property, nullptr) > 0) { mHasNvSystemTime = !strcmp(property, "true") && hasEglExtension("EGL_NV_system_time"); } else { mHasNvSystemTime = false; @@ -93,9 +90,6 @@ Extensions::Extensions(): Singleton<Extensions>() { } } -Extensions::~Extensions() { -} - /////////////////////////////////////////////////////////////////////////////// // Methods /////////////////////////////////////////////////////////////////////////////// |
