Re-enable DesktopCaptureApiTest on Chrome OS.

The GPU-accelerated desktop capture path on Chrome OS requires real
GL contexts. Otherwise the test will timeout because the YUV readback
pipeline never completes.

BUG=324179
TEST=browser_tests DesktopCaptureApiTest.ChooseDesktopMedia
R=sergeyu@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238175 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 238175
Added a substring matching instruction to the JTL interpreter.

BUG=298036

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238176 0039d316-1c4b-4281-b951-d872f2087c98
SVN changes up to revision 238176
[Mac] Don't ignore mouse events outside of the view while dragging.

Previously, we ignored mouse events atop of another RenderWidgetHostView
while dragging, which lead to weird behavior.

BUG=319879
TEST=Open DevTools docked to right, scroll page by dragging the thumb,
move mouse atop the DevTools. Page should still be scrolled. Observe
the same while moving mouse out of the window.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238177 0039d316-1c4b-4281-b951-d872f2087c98
cc: Prevent ResourceUpdateContoller from uploading textures after lost context

If the context was lost in the middle of the ResourceUpdateController
uploading textures, it would previously continue uploading textures.

ResourceUpdateController now stops uploading immediately and notifies
its client that the uploads have completed, which will allow the
commit to complete.

The LayerTreeHostContextTestLostContextWhileUpdatingResources unit
test now relys on the first draw to trigger the end of the test.
Relying on the first commit to end the test was incorrect before
this patch and would be incorrect after this patch, since losing the
context doesn't prevent the commit from finishing. Previously, the
end of the test was racing with the expected number of times the
context would be lost.

In order to rely on the first draw to end the test, SingleThreadProxy
now checks for lost context before drawing.

BUG=313790
TBR=danakj

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

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