hwc: memset dropArray when changing refresh rate

memset dropArray and set dropCount to 0 before proceeding
to identify if refresh rate needs to be changed. Not doing
this will result in dropCount containing junk value which
will impact mdpCount. This prevents us in changing refresh
rate in cases where it could be changed.

Change-Id: I4081062157620ca0dc0b4a6fed0689b2869efb91
diff --git a/libhwcomposer/hwc_mdpcomp.cpp b/libhwcomposer/hwc_mdpcomp.cpp
index bf764e6..aca62f3 100644
--- a/libhwcomposer/hwc_mdpcomp.cpp
+++ b/libhwcomposer/hwc_mdpcomp.cpp
@@ -1888,6 +1888,8 @@
     if(!mDpy && qdutils::MDPVersion::getInstance().isDynFpsSupported()) {
         FrameInfo frame;
         frame.reset(mCurrentFrame.layerCount);
+        memset(&frame.drop, 0, sizeof(frame.drop));
+        frame.dropCount = 0;
         ALOGD_IF(isDebug(), "%s: Update Cache and YUVInfo for Dyn Refresh Rate",
                  __FUNCTION__);
         updateLayerCache(ctx, list, frame);