diff options
author | Chris Craik <ccraik@google.com> | 2014-07-23 18:19:28 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-07-24 16:41:13 +0000 |
commit | 058fc640017c90120c599d378a4cbc55668b05b7 (patch) | |
tree | 37f480e607d1f39de8cec06b205eb0e146cc9551 /libs/hwui/OpenGLRenderer.h | |
parent | 753d849b2ad14cdacfe6b194d8aa7fc27874e385 (diff) | |
download | frameworks_base-058fc640017c90120c599d378a4cbc55668b05b7.zip frameworks_base-058fc640017c90120c599d378a4cbc55668b05b7.tar.gz frameworks_base-058fc640017c90120c599d378a4cbc55668b05b7.tar.bz2 |
Connect shadow style attributes to renderer
bug:15859361
Moves lighting info out of StatefulBaseRenderer, since it's not useful
at record time, and only used by OGLR.
Change-Id: I7ab065d02d9304afad1dc4c48597a7a621366f8e
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rwxr-xr-x | libs/hwui/OpenGLRenderer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 4e7844b..f698b45 100755 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -124,6 +124,8 @@ public: virtual ~OpenGLRenderer(); void initProperties(); + void initLight(const Vector3& lightCenter, float lightRadius, + uint8_t ambientShadowAlpha, uint8_t spotShadowAlpha); virtual void onViewportInitialized(); virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque); @@ -1010,6 +1012,12 @@ private: bool mSkipOutlineClip; + // Lighting + shadows + Vector3 mLightCenter; + float mLightRadius; + uint8_t mAmbientShadowAlpha; + uint8_t mSpotShadowAlpha; + friend class Layer; friend class TextSetupFunctor; friend class DrawBitmapOp; |