summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/Layer.cpp
diff options
context:
space:
mode:
author Peiyong Lin <lpy@google.com> 2019-04-23 01:40:14 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2019-04-23 01:40:14 +0000
commitdde87c4a326d0480aef0420f04c160b9d5d5096e (patch)
tree825095766b9e0ef0fec52129425f8204efb84336 /services/surfaceflinger/Layer.cpp
parent2ea045dd11f662e347345dcaf0a9cd8e6953dd2f (diff)
parent222859a6730a770d828b8568ad9974f4f5937c04 (diff)
Merge "[SurfaceFlinger] Remove unused functions." into qt-dev
Diffstat (limited to 'services/surfaceflinger/Layer.cpp')
-rw-r--r--services/surfaceflinger/Layer.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 42e08faa80..46ca0b6fa2 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -386,13 +386,6 @@ void Layer::setupRoundedCornersCropCoordinates(Rect win,
win.right -= roundedCornersCrop.left;
win.top -= roundedCornersCrop.top;
win.bottom -= roundedCornersCrop.top;
-
- renderengine::Mesh::VertexArray<vec2> cropCoords(
- getCompositionLayer()->editState().reMesh.getCropCoordArray<vec2>());
- cropCoords[0] = vec2(win.left, win.top);
- cropCoords[1] = vec2(win.left, win.top + win.getHeight());
- cropCoords[2] = vec2(win.right, win.top + win.getHeight());
- cropCoords[3] = vec2(win.right, win.top);
}
void Layer::latchGeometry(compositionengine::LayerFECompositionState& compositionState) const {
@@ -544,18 +537,6 @@ bool Layer::prepareClientLayer(const RenderArea& /*renderArea*/, const Region& /
return true;
}
-void Layer::clearWithOpenGL(const RenderArea& renderArea, float red, float green, float blue,
- float alpha) const {
- auto& engine(mFlinger->getRenderEngine());
- computeGeometry(renderArea, getCompositionLayer()->editState().reMesh, false);
- engine.setupFillWithColor(red, green, blue, alpha);
- engine.drawMesh(getCompositionLayer()->getState().reMesh);
-}
-
-void Layer::clearWithOpenGL(const RenderArea& renderArea) const {
- clearWithOpenGL(renderArea, 0, 0, 0, 0);
-}
-
void Layer::setCompositionType(const sp<const DisplayDevice>& display,
Hwc2::IComposerClient::Composition type) {
const auto outputLayer = findOutputLayerForDisplay(display);