Merge "Optimise the hit test algorithm" into oc-mr1-dev