diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-28 18:13:56 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-28 18:13:56 -0700 |
commit | 19733a32799f792125913e746e8644d16f8dc223 (patch) | |
tree | 65a3de18d5eb2edf7c67454a8ecb7860e7111f14 /services/surfaceflinger/Layer.cpp | |
parent | 931bda1c472ba8c8e965bdba6757ff94154df903 (diff) | |
download | frameworks_native-19733a32799f792125913e746e8644d16f8dc223.zip frameworks_native-19733a32799f792125913e746e8644d16f8dc223.tar.gz frameworks_native-19733a32799f792125913e746e8644d16f8dc223.tar.bz2 |
minor clean-up of the GLESRenderer
Change-Id: I978dea25b7687fbbbb283f09c24e115d9bad49a2
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index f867e86..56bddd6 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -506,8 +506,10 @@ void Layer::onDraw(const sp<const DisplayDevice>& hw, const Region& clip) const void Layer::clearWithOpenGL(const sp<const DisplayDevice>& hw, const Region& clip, float red, float green, float blue, float alpha) const { + RenderEngine& engine(mFlinger->getRenderEngine()); computeGeometry(hw, mMesh); - mFlinger->getRenderEngine().fillWithColor(mMesh, red, green, blue, alpha); + engine.setupFillWithColor(red, green, blue, alpha); + engine.drawMesh(mMesh); } void Layer::clearWithOpenGL( |