diff options
Diffstat (limited to 'libs/hwui/Caches.h')
| -rw-r--r-- | libs/hwui/Caches.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/libs/hwui/Caches.h b/libs/hwui/Caches.h index 65ff9ad..58361c9 100644 --- a/libs/hwui/Caches.h +++ b/libs/hwui/Caches.h @@ -107,7 +107,7 @@ public: }; /** - * Initializes the cache. + * Initialize caches. */ void init(); @@ -247,15 +247,30 @@ public: GammaFontRenderer fontRenderer; ResourceCache resourceCache; + // Debug methods PFNGLINSERTEVENTMARKEREXTPROC eventMark; PFNGLPUSHGROUPMARKEREXTPROC startMark; PFNGLPOPGROUPMARKEREXTPROC endMark; + PFNGLLABELOBJECTEXTPROC setLabel; + PFNGLGETOBJECTLABELEXTPROC getLabel; + private: - static void eventMarkNull(GLsizei length, const GLchar *marker) { } - static void startMarkNull(GLsizei length, const GLchar *marker) { } + void initExtensions(); + void initConstraints(); + + static void eventMarkNull(GLsizei length, const GLchar* marker) { } + static void startMarkNull(GLsizei length, const GLchar* marker) { } static void endMarkNull() { } + static void setLabelNull(GLenum type, uint object, GLsizei length, + const char* label) { } + static void getLabelNull(GLenum type, uint object, GLsizei bufferSize, + GLsizei* length, char* label) { + if (length) *length = 0; + if (label) *label = '\0'; + } + GLuint mCurrentBuffer; GLuint mCurrentIndicesBuffer; void* mCurrentPositionPointer; |
