[Android] Draw progress bar on cc layer directly.
commit418543da02b2805c9083647d2954ff57376c7f76
authorkkimlabs <kkimlabs@chromium.org>
Mon, 27 Jul 2015 08:29:59 +0000 (27 01:29 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Jul 2015 08:30:40 +0000 (27 08:30 +0000)
treef8214ba9ebe3cd39f6e08c0d28c8318c1da174c1
parent9726adb26484382a1e2d7fccc1ad2a75d91d4b20
[Android] Draw progress bar on cc layer directly.

We were capturing the progress bar bitmap every time it is changed.
Remove the capturing logic and instead draw on cc layer directly, only
when it is requested.

We suspect that the capturing was the primary reason for the page
loading time regression when we tried progress bar animation before.
This should help the performance issue.

BUG=461148

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

Cr-Commit-Position: refs/heads/master@{#340435}
chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorView.java
chrome/android/java/src/org/chromium/chrome/browser/compositor/CompositorViewHolder.java
chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarControlContainer.java
chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappControlContainer.java
chrome/android/java/src/org/chromium/chrome/browser/widget/ClipDrawableProgressBar.java
chrome/android/java/src/org/chromium/chrome/browser/widget/ControlContainer.java
chrome/browser/android/compositor/compositor_view.cc
chrome/browser/android/compositor/compositor_view.h
chrome/browser/android/compositor/layer/tab_layer.cc
chrome/browser/android/compositor/layer/toolbar_layer.cc
chrome/browser/android/compositor/layer/toolbar_layer.h