Add sk_calloc and sk_calloc_throw to SkMemory_new_handler.cpp.

After finding that calloc can be significantly faster than malloc+bzero on some
platforms (notably, Android), Skia wants to start experimenting with using
calloc where possible.  For this, we've added sk_calloc and sk_calloc_throw to
the SkMemory API.

This CL is my ham-handed approach to add calloc support to
SkMemory_new_handler.cpp.  It seems to me that this exists as an alternative to
SkMemory_malloc.cpp so that we can try to dodge any OOM crash that the
underlying malloc implementation might helpfully provide?

I've tried to mimic what I saw here for the non-throwing malloc onto sk_calloc,
and just did some refactoring to make this code look a bit more like the
current SkMemory_malloc.cpp.

BUG=skia:1662

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227563 0039d316-1c4b-4281-b951-d872f2087c98
Gamepad: Disable DirectInput support on Windows.

Users are reporting chrome not shutting down properly, and there are thread
stacks that suggest DirectInput support is at fault. Since this isn't a very
important feature, let's yank it for now, and hope to debug this in the future.

BUG=305267
R=scottmg@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227564 0039d316-1c4b-4281-b951-d872f2087c98
Enable EncryptedMediaTest (in content_browsertests) on Android.

Encrytped media playback with <video src=...> is not supported on Android. Those
tests will not run on Android.

BUG=304956,300035
TEST=This CL enables tests which was previously disabled.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227565 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 227564
Fix some WeakPtrFactory members that aren't last

BUG=303818

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@227566 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 227566