summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-08-28 18:13:56 -0700
committerMathias Agopian <mathias@google.com>2013-08-28 18:13:56 -0700
commit19733a32799f792125913e746e8644d16f8dc223 (patch)
tree65a3de18d5eb2edf7c67454a8ecb7860e7111f14 /services/surfaceflinger/Layer.cpp
parent931bda1c472ba8c8e965bdba6757ff94154df903 (diff)
downloadframeworks_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.cpp4
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(