diff options
Diffstat (limited to 'libs/hwui/renderstate/Stencil.cpp')
-rw-r--r-- | libs/hwui/renderstate/Stencil.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libs/hwui/renderstate/Stencil.cpp b/libs/hwui/renderstate/Stencil.cpp index acbed14..cedb233 100644 --- a/libs/hwui/renderstate/Stencil.cpp +++ b/libs/hwui/renderstate/Stencil.cpp @@ -14,10 +14,12 @@ * limitations under the License. */ +#include "renderstate/Stencil.h" + +#include "Caches.h" #include "Debug.h" #include "Extensions.h" #include "Properties.h" -#include "renderstate/Stencil.h" #include <GLES2/gl2ext.h> @@ -42,7 +44,7 @@ uint8_t Stencil::getStencilSize() { GLenum Stencil::getSmallestStencilFormat() { #if !DEBUG_STENCIL - const Extensions& extensions = Extensions::getInstance(); + const Extensions& extensions = Caches::getInstance().extensions(); if (extensions.has1BitStencil()) { return GL_STENCIL_INDEX1_OES; } else if (extensions.has4BitStencil()) { @@ -123,5 +125,9 @@ void Stencil::disable() { } } +void Stencil::dump() { + ALOGD("Stencil: state %d", mState); +} + }; // namespace uirenderer }; // namespace android |