From 382574d116759ccc19463c03db841e3d6e2d4424 Mon Sep 17 00:00:00 2001 From: Jesse Hall Date: Thu, 7 Aug 2014 22:33:14 -0700 Subject: [PATCH] surfaceflinger: fix -Woverloaded-virtual warning warning: 'android::LayerDim::isOpaque' hides overloaded virtual function [-Woverloaded-virtual] Change-Id: Ie27a6c943f485bc89ce11e424a4e7d99805d4dd0 --- services/surfaceflinger/LayerDim.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/surfaceflinger/LayerDim.h b/services/surfaceflinger/LayerDim.h index 4de0ddc6b..a0cfca98c 100644 --- a/services/surfaceflinger/LayerDim.h +++ b/services/surfaceflinger/LayerDim.h @@ -28,7 +28,7 @@ namespace android { class LayerDim : public Layer { -public: +public: LayerDim(SurfaceFlinger* flinger, const sp& client, const String8& name, uint32_t w, uint32_t h, uint32_t flags); virtual ~LayerDim(); @@ -36,7 +36,7 @@ public: virtual const char* getTypeId() const { return "LayerDim"; } virtual void onDraw(const sp& hw, const Region& clip, bool useIdentityTransform) const; - virtual bool isOpaque() const { return false; } + virtual bool isOpaque(const Layer::State&) const { return false; } virtual bool isSecure() const { return false; } virtual bool isFixedSize() const { return true; } virtual bool isVisible() const;