Telemetry: run media.tough_video_cases using WPR

BUG=311713

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231233 0039d316-1c4b-4281-b951-d872f2087c98
Mac: Return the primary display if [window screen] is NULL.

If a WebContents is parented to a hidden NSWindow the screen will be NULL.
This change fixes a problem where the the device scale factor returned from
RenderWidgetHostViewMac::GetScreenInfo() was 0 (due to the invalid display)
causing canvas creation to fail in RenderWidget.

BUG=311690
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231234 0039d316-1c4b-4281-b951-d872f2087c98
Make NetworkChangeNotifier use the application context

When you have multiple Activities using the notifier, it's entirely possible that
the original context it used will be destroyed by Android.  Use the ApplicationContext
instead.

BUG=311659

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231235 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 231235
cc: Modify RenderPass::transform_to_root_target in DRLayerImpl.

DelegatedRendererLayerImpl needs to transform everything in its output
by the transforms with which the layer itself will be drawn. It was
transforming the contents of all its quads, but missed transforming its
render passes. Each RenderPass::transform_to_root_target needs to have
the DelegatedRendererLayerImpl's screen space transform included in
it.

Tests:
DelegatedRendererLayerImplTestSimple.RenderPassTransformIsModified

R=enne
BUG=311315

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

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