diff options
| author | 2014-12-08 18:46:08 +0000 | |
|---|---|---|
| committer | 2014-12-08 18:46:08 +0000 | |
| commit | e22262ffd0bbed53e6d964f2fbcd5ecd85c04403 (patch) | |
| tree | dd5b7d0f0fcda5037fdff7024bec79a6b2848498 /libs/gui/IDisplayEventConnection.cpp | |
| parent | 8fd567b127170a3962bc9de637eb7987cee71810 (diff) | |
| parent | dd883c0b08d2a60f89542b9b9f5fdabcb14885c7 (diff) | |
Merge "libgui: Enable -Weverything and -Werror"
Diffstat (limited to 'libs/gui/IDisplayEventConnection.cpp')
| -rw-r--r-- | libs/gui/IDisplayEventConnection.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/libs/gui/IDisplayEventConnection.cpp b/libs/gui/IDisplayEventConnection.cpp index 887d176b44..9890f44ef7 100644 --- a/libs/gui/IDisplayEventConnection.cpp +++ b/libs/gui/IDisplayEventConnection.cpp @@ -44,6 +44,8 @@ public: { } + virtual ~BpDisplayEventConnection(); + virtual sp<BitTube> getDataChannel() const { Parcel data, reply; @@ -55,7 +57,7 @@ public: virtual void setVsyncRate(uint32_t count) { Parcel data, reply; data.writeInterfaceToken(IDisplayEventConnection::getInterfaceDescriptor()); - data.writeInt32(count); + data.writeUint32(count); remote()->transact(SET_VSYNC_RATE, data, &reply); } @@ -66,6 +68,10 @@ public: } }; +// Out-of-line virtual method definition to trigger vtable emission in this +// translation unit (see clang warning -Wweak-vtables) +BpDisplayEventConnection::~BpDisplayEventConnection() {} + IMPLEMENT_META_INTERFACE(DisplayEventConnection, "android.gui.DisplayEventConnection"); // ---------------------------------------------------------------------------- @@ -79,17 +85,17 @@ status_t BnDisplayEventConnection::onTransact( sp<BitTube> channel(getDataChannel()); channel->writeToParcel(reply); return NO_ERROR; - } break; + } case SET_VSYNC_RATE: { CHECK_INTERFACE(IDisplayEventConnection, data, reply); - setVsyncRate(data.readInt32()); + setVsyncRate(data.readUint32()); return NO_ERROR; - } break; + } case REQUEST_NEXT_VSYNC: { CHECK_INTERFACE(IDisplayEventConnection, data, reply); requestNextVsync(); return NO_ERROR; - } break; + } } return BBinder::onTransact(code, data, reply, flags); } |