Buffer returned textures from render to VDA

This is CrOS ARM only hot fix for tearing/out of order frames caused
by render/decode synchronization issues until we understand the
underlying problem (presumably in the driver) better.

The main effect of this change is to add an extra delay of 2 frames
between draw and decode to clearly separate both. We had a similar
hack in Flash when synchronization was broken (then in particular
> 2 was used to achieve sufficient delay). We have a total of 8
PictureBuffers in flight but only need about 4 for smooth playback.
(With this change we are down to 6 which is still sufficient.)

BUG=chromium:225563
AUTHOR=ihf@chromium.org
TEST=Ran on Daisy with different problematic videos and did not notice problems.
TBR=sheu
TBR=xhwang
NOTRY=true

Original Review CL: https://codereview.chromium.org/14238003/

Landing this on behalf of ihf@ - CQ is down.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194267 0039d316-1c4b-4281-b951-d872f2087c98
Use NTP time for video frame timestamp.
Add tracing for capture timestamps.

BUG=225209
TEST=Check that AppRTC still works.

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192670

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194268 0039d316-1c4b-4281-b951-d872f2087c98
cc: Add strict layer property change checking and handle bounds changes during paint.

This fixes a problem where paint would cause layer bounds to change
and Layer::PushProperties to push an non-empty picture layer without
a recording to the impl side.

This also adds a new command line switch that make layer property
changes during paint cause a CHECK() to fail. This can be used
to diagnose situations where paint is incorrectly causing layer
properties to change.

BUG=229179
TEST=cc_unittests --gtest_filter=LayerTreeHostTestChangeLayerPropertiesInPaintContents.RunSingleThread

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194269 0039d316-1c4b-4281-b951-d872f2087c98
Ignore HTCLIENT in HWNDMessageHandler::OnSetCursor.

http://crrev.com/188817 incorrectly overrides client-area cursors.
Ignore HTCLIENT in OnSetCursor; defer to client-area mouse message handling.
(RootView::OnMouseMoved calls widget_->SetCursor(mouse_move_handler_->GetCursor(moved_event)))

BUG=226692
TEST=Omnibox and textfield I-beam cursors do not flicker the pointer; no cursor regressions.
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194270 0039d316-1c4b-4281-b951-d872f2087c98
Roll OpenSSL to 194187

Includes:
0991a83 Only make OpenSSL a component for Android component builds.
5bd6e05 Make openssl a component.

BUG=158821

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194272 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194273 0039d316-1c4b-4281-b951-d872f2087c98
drive: Stop calling StartPolling() from FileBrowserEventRouter and elsewhere

The polling code was added before the XMPP-based notification was introduced
and no longer necessary.

BUG=231198
TEST=Open Drive in Files.app; open drive.google.com and add a new document; Confirm that the new document shows up in Files.app in seconds.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194274 0039d316-1c4b-4281-b951-d872f2087c98
Add 'drive_resource_metadata' to the watchlist.

BUG=None
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194276 0039d316-1c4b-4281-b951-d872f2087c98
Support GetContentCallback on FakeDriveService.

By this CL, FakeDriveService::DownloadFile method supports to invoke
GetContentCallback.

BUG=127129
TEST=Ran unit_tests.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194279 0039d316-1c4b-4281-b951-d872f2087c98
Added DriveNotificationManagerFactory so DriveNotificationManager is a singleton and can be called statically.

BUG=173339

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194282 0039d316-1c4b-4281-b951-d872f2087c98
Roll DEPS for Breakpad r1139:1146.

r1146: Fix build on Android - add a missing NT_GNU_BUILD_ID define.
r1145: Remove auto_ptr usage in Breakpad.
r1144: Turn off verbose logging but keep logic for future reference for debug logging.
r1143: Try to find a build-id through PT_NOTE program headers
r1142: Support generic Elf notes, with unit tests
r1141: Refactor BasicElf synth_elf unitest
r1140: These are prerequisites needed for a wider effort inside Google to enable
structured logging.  This is basically wrapping std::ostream within a new type. 
No functional differences from this change are expected.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194283 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194284 0039d316-1c4b-4281-b951-d872f2087c98
Select the initial folder in the left nav once Files.app is launched.

The selection sometimes had not been set because of a timing issue. A selectPath() was called, but since the sidebar hadn't been initialized yet, the selection hasn't been set. This patch addresses this issue by synchronizing the selection when root list is changed.

BUG=230738
TEST=Open Files.app. The Default folder should be selected.

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194286 0039d316-1c4b-4281-b951-d872f2087c98
Fix opening Google Doc's documents in Files.app V2.

Opening such files failed, when no browser window was running. This is because packaged apps are not running within a browser window, and therefore GetCurrentBrowser returns NULL, if there is no browser window running. Therefore we need to create a browser instance. This patch fixes this problem by replacing GetCurrentBrowser with a FindOrCreateTabbedBrowser call.

TEST=Run chrome with --file-manager-packaged, launch Files.app and try to open a .gdoc file.
BUG=231190

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194287 0039d316-1c4b-4281-b951-d872f2087c98
DevTools: enable reverse tethering in the ADB remote debugging.

BUG=231410

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194288 0039d316-1c4b-4281-b951-d872f2087c98
Split the job queue and the job information in DriveScheduler.

In the current design, the JobInfo structure of running jobs are owned by
the callback of in-flight operations. This makes impossible to access
(= read from UI code or update by progress notification from lower layer)
the information during the job is running.

This patch decouples JobInfo and QueueEntry. QueueEntry is still associated
with the callback function but JobInfo is now owned by the Scheduler itself.

Along the way, JobInfo::job_id became to be filled with the unique job id.

BUG=154243, 128079

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194289 0039d316-1c4b-4281-b951-d872f2087c98
Blink roll r148402 - r148420

TBR=jchaffraix

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194290 0039d316-1c4b-4281-b951-d872f2087c98
Update .DEPS.git

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194291 0039d316-1c4b-4281-b951-d872f2087c98
Enable new dialog style transparency with Views Textfields.

This makes new-style Dialog widgets transparent on non-Aura Win.
Use Views Textfields if the new dialog style switch is specified.
( transparency prohibits hosting native Windows textfield controls )
( new-dialog-style + win-textfields is possible but breaks dialog textfields )
See the border of before/after pics at http://crbug.com/166075#c46

BUG=166075,231012
TEST=Non-Aura Win new-style dialogs don't have any extra black/glass border.
R=sky@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194292 0039d316-1c4b-4281-b951-d872f2087c98
chromeos: Move remaining file manager related files from chrome/browser/chromeos/extensions

Move files to a sub directory.
Move owners to an appropriate place.

BUG=224200
TEST=build

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194293 0039d316-1c4b-4281-b951-d872f2087c98