diff options
| author | John Reck <jreck@google.com> | 2017-11-03 10:12:19 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2017-11-03 10:57:44 -0700 |
| commit | 1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 (patch) | |
| tree | 4a1366cf2d1cf50b5ec4ed1a8cf0f437053cd0d7 /libs/hwui/pipeline/skia/GLFunctorDrawable.cpp | |
| parent | 30ec71c0fe194a551d2e4abaff2159e0730488e0 (diff) | |
Format the world (or just HWUI)
Test: No code changes, just ran through clang-format
Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
Diffstat (limited to 'libs/hwui/pipeline/skia/GLFunctorDrawable.cpp')
| -rw-r--r-- | libs/hwui/pipeline/skia/GLFunctorDrawable.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp index fcd72afe4fb9..145e3c485cbc 100644 --- a/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp +++ b/libs/hwui/pipeline/skia/GLFunctorDrawable.cpp @@ -15,19 +15,19 @@ */ #include "GLFunctorDrawable.h" +#include <GrContext.h> +#include <private/hwui/DrawGlInfo.h> #include "GlFunctorLifecycleListener.h" #include "RenderNode.h" #include "SkAndroidFrameworkUtils.h" #include "SkClipStack.h" -#include <private/hwui/DrawGlInfo.h> -#include <GrContext.h> namespace android { namespace uirenderer { namespace skiapipeline { GLFunctorDrawable::~GLFunctorDrawable() { - if(mListener.get() != nullptr) { + if (mListener.get() != nullptr) { mListener->onGlFunctorReleased(mFunctor); } } @@ -73,7 +73,7 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) { bool clearStencilAfterFunctor = false; - //apply a simple clip with a scissor or a complex clip with a stencil + // apply a simple clip with a scissor or a complex clip with a stencil SkRegion clipRegion; canvas->temporary_internal_getRgnClip(&clipRegion); if (CC_UNLIKELY(clipRegion.isComplex())) { @@ -106,7 +106,7 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) { (*mFunctor)(DrawGlInfo::kModeDraw, &info); if (clearStencilAfterFunctor) { - //clear stencil buffer as it may be used by Skia + // clear stencil buffer as it may be used by Skia glDisable(GL_SCISSOR_TEST); glDisable(GL_STENCIL_TEST); glStencilMask(0x1); @@ -115,8 +115,8 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) { } canvas->getGrContext()->resetContext(); - } +} -}; // namespace skiapipeline -}; // namespace uirenderer -}; // namespace android +}; // namespace skiapipeline +}; // namespace uirenderer +}; // namespace android |
