diff options
author | 2017-11-03 10:12:19 -0700 | |
---|---|---|
committer | 2017-11-03 10:57:44 -0700 | |
commit | 1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 (patch) | |
tree | 4a1366cf2d1cf50b5ec4ed1a8cf0f437053cd0d7 /libs/hwui/Layer.h | |
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/Layer.h')
-rw-r--r-- | libs/hwui/Layer.h | 48 |
1 files changed, 15 insertions, 33 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index e5520ea0e811..69213817f8af 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -16,11 +16,11 @@ #pragma once -#include <utils/RefBase.h> #include <GpuMemoryTracker.h> +#include <utils/RefBase.h> -#include <SkPaint.h> #include <SkBlendMode.h> +#include <SkPaint.h> #include "Matrix.h" @@ -43,9 +43,7 @@ public: Vulkan = 1, }; - Api getApi() const { - return mApi; - } + Api getApi() const { return mApi; } ~Layer(); @@ -59,44 +57,28 @@ public: virtual bool isBlend() const = 0; - inline void setForceFilter(bool forceFilter) { - this->forceFilter = forceFilter; - } + inline void setForceFilter(bool forceFilter) { this->forceFilter = forceFilter; } - inline bool getForceFilter() const { - return forceFilter; - } + inline bool getForceFilter() const { return forceFilter; } - inline void setAlpha(int alpha) { - this->alpha = alpha; - } + inline void setAlpha(int alpha) { this->alpha = alpha; } inline void setAlpha(int alpha, SkBlendMode mode) { this->alpha = alpha; this->mode = mode; } - inline int getAlpha() const { - return alpha; - } + inline int getAlpha() const { return alpha; } - inline SkBlendMode getMode() const { - return mode; - } + inline SkBlendMode getMode() const { return mode; } - inline SkColorFilter* getColorFilter() const { - return colorFilter; - } + inline SkColorFilter* getColorFilter() const { return colorFilter; } void setColorFilter(SkColorFilter* filter); - inline mat4& getTexTransform() { - return texTransform; - } + inline mat4& getTexTransform() { return texTransform; } - inline mat4& getTransform() { - return transform; - } + inline mat4& getTransform() { return transform; } /** * Posts a decStrong call to the appropriate thread. @@ -106,7 +88,7 @@ public: protected: Layer(RenderState& renderState, Api api, SkColorFilter* colorFilter, int alpha, - SkBlendMode mode); + SkBlendMode mode); RenderState& mRenderState; @@ -143,7 +125,7 @@ private: */ mat4 transform; -}; // struct Layer +}; // struct Layer -}; // namespace uirenderer -}; // namespace android +}; // namespace uirenderer +}; // namespace android |