If we are animating the cursor it is possible to drop an IPC that didn't
commit0fc3a4ef697aa343510d94bdb9cdcb2165bd6787
authoralexst <alexst@chromium.org>
Sat, 10 Jan 2015 02:13:09 +0000 (9 18:13 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 10 Jan 2015 02:13:46 +0000 (10 02:13 +0000)
treea425bed03e67fe806f6dfe19661ff31f03908c5f
parent54720d1a7aac3e32164b5107b5e4037034aa98ed
If we are animating the cursor it is possible to drop an IPC that didn't
belong to us on the floor.

When animating, we post messages to main thread manually and return true because we assume that they are messages we know how to handle. If the message is not a cursor message that a main thread handler knows how to deal with, returning true means we effectively drop it on the floor. This patch returns false immediately if the message is not of a known type.

BUG=

Review URL: https://codereview.chromium.org/843223002

Cr-Commit-Position: refs/heads/master@{#310940}
ui/ozone/platform/dri/dri_gpu_platform_support.cc