Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Issue 143803004: android: Migrate old content readback to use async readback (and delegated renderer) (Closed)

Created:
6 years, 11 months ago by powei
Modified:
6 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org, no sievers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

android: Migrate old content readback to use async readback (and delegated renderer) This patch removes the use of a helper context for content readback. Instead, we use the async readback API. This patch is also setting delegated renderer as the default for android. android= https://chrome-internal-review.googlesource.com/#/c/153746/ BUG=326363 TBR=sievers@chromium.org NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248827 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249081 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249453

Patch Set 1 #

Patch Set 2 : removed are_layers_attached_, added is_showing_ #

Patch Set 3 : turn clipping off for readback #

Total comments: 25

Patch Set 4 : rebased #

Total comments: 9

Patch Set 5 : addressed sievers@ comments #

Patch Set 6 : turn on delegated rendering #

Total comments: 5

Patch Set 7 : addressed comments #

Total comments: 18

Patch Set 8 : addressed aelias@ comments #

Total comments: 12

Patch Set 9 : aelias and dtrainor comments #

Patch Set 10 : dtrainor comment leftover #

Total comments: 4

Patch Set 11 : changed GenerateCompressedUIResource details #

Patch Set 12 : ETC1 UIResourceBitmap takes size #

Patch Set 13 : nit #

Patch Set 14 : consistent device scaling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -242 lines) Patch
M cc/resources/ui_resource_bitmap.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/ui_resource_bitmap.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +10 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -2 lines 0 comments Download
M content/browser/android/content_startup_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/android/content_view_core_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -5 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +12 lines, -17 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +84 lines, -120 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 chunks +42 lines, -51 lines 0 comments Download
M content/public/browser/android/compositor.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -29 lines 0 comments Download
M content/public/browser/android/content_view_core.h View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
powei
ptal thanks! https://codereview.chromium.org/143803004/diff/110001/content/browser/renderer_host/compositor_impl_android.h File content/browser/renderer_host/compositor_impl_android.h (right): https://codereview.chromium.org/143803004/diff/110001/content/browser/renderer_host/compositor_impl_android.h#newcode64 content/browser/renderer_host/compositor_impl_android.h:64: virtual void SetNeedsCommit() OVERRIDE; Debug purpose only. ...
6 years, 10 months ago (2014-01-28 19:46:44 UTC) #1
no sievers
https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc#newcode620 content/browser/android/content_view_core_impl.cc:620: base::Bind(compositor_callback, false, SkBitmap())); nit: you can just do compositor_callback.Run(false, ...
6 years, 10 months ago (2014-01-28 20:47:21 UTC) #2
powei
https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc#newcode620 content/browser/android/content_view_core_impl.cc:620: base::Bind(compositor_callback, false, SkBitmap())); On 2014/01/28 20:47:21, sievers wrote: > ...
6 years, 10 months ago (2014-01-29 13:53:17 UTC) #3
powei
also turning on delegated rendering in this patch
6 years, 10 months ago (2014-01-29 14:11:47 UTC) #4
no sievers
https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc#newcode626 content/browser/android/content_view_core_impl.cc:626: base::Unretained(this), On 2014/01/29 13:53:17, powei wrote: > On 2014/01/28 ...
6 years, 10 months ago (2014-01-29 21:13:46 UTC) #5
powei
On 2014/01/29 21:13:46, sievers wrote: > https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc > File content/browser/android/content_view_core_impl.cc (right): > > https://codereview.chromium.org/143803004/diff/110001/content/browser/android/content_view_core_impl.cc#newcode626 > ...
6 years, 10 months ago (2014-01-30 00:53:59 UTC) #6
powei
https://codereview.chromium.org/143803004/diff/190001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/143803004/diff/190001/content/browser/android/content_view_core_impl.cc#newcode597 content/browser/android/content_view_core_impl.cc:597: bool success, On 2014/01/29 21:13:48, sievers wrote: > Looks ...
6 years, 10 months ago (2014-01-30 00:54:12 UTC) #7
aelias_OOO_until_Jul13
https://codereview.chromium.org/143803004/diff/200010/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://codereview.chromium.org/143803004/diff/200010/content/browser/android/content_view_core_impl.h#newcode61 content/browser/android/content_view_core_impl.h:61: const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; It's hard to ...
6 years, 10 months ago (2014-01-31 05:50:09 UTC) #8
powei
https://codereview.chromium.org/143803004/diff/200010/content/browser/android/content_view_core_impl.h File content/browser/android/content_view_core_impl.h (right): https://codereview.chromium.org/143803004/diff/200010/content/browser/android/content_view_core_impl.h#newcode61 content/browser/android/content_view_core_impl.h:61: const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; On 2014/01/31 05:50:10, ...
6 years, 10 months ago (2014-02-01 01:30:48 UTC) #9
aelias_OOO_until_Jul13
lgtm modulo minor comments https://codereview.chromium.org/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.cc#newcode344 content/browser/renderer_host/compositor_impl_android.cc:344: bool is_transient) { Please add ...
6 years, 10 months ago (2014-02-01 02:09:20 UTC) #10
David Trainor- moved to gerrit
lgtm https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/android/content_view_core_impl.cc#newcode709 content/browser/android/content_view_core_impl.cc:709: if (!view || !view->IsSurfaceAvailableForCopy()) { Should the view->IsSurfaceAvailableForCopy() ...
6 years, 10 months ago (2014-02-02 18:38:53 UTC) #11
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h File content/browser/renderer_host/compositor_impl_android.h (right): https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h#newcode64 content/browser/renderer_host/compositor_impl_android.h:64: size_t data_size, On 2014/02/02 18:38:53, David Trainor wrote: > ...
6 years, 10 months ago (2014-02-03 08:40:35 UTC) #12
powei
https://codereview.chromium.org/143803004/diff/420001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/143803004/diff/420001/content/browser/android/content_view_core_impl.cc#newcode709 content/browser/android/content_view_core_impl.cc:709: if (!view || !view->IsSurfaceAvailableForCopy()) { On 2014/02/02 18:38:53, David ...
6 years, 10 months ago (2014-02-03 10:06:52 UTC) #13
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h File content/browser/renderer_host/compositor_impl_android.h (right): https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h#newcode64 content/browser/renderer_host/compositor_impl_android.h:64: size_t data_size, We handle adding the padding the compressed ...
6 years, 10 months ago (2014-02-03 18:40:09 UTC) #14
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h File content/browser/renderer_host/compositor_impl_android.h (right): https://chromiumcodereview.appspot.com/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h#newcode64 content/browser/renderer_host/compositor_impl_android.h:64: size_t data_size, On 2014/02/03 18:40:10, David Trainor wrote: > ...
6 years, 10 months ago (2014-02-03 18:51:13 UTC) #15
aelias_OOO_until_Jul13
https://chromiumcodereview.appspot.com/143803004/diff/450002/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://chromiumcodereview.appspot.com/143803004/diff/450002/content/browser/renderer_host/compositor_impl_android.cc#newcode350 content/browser/renderer_host/compositor_impl_android.cc:350: SkImageInfo info = {size.width(), size.height(), kPMColor_SkColorType, On 2014/02/03 18:51:14, ...
6 years, 10 months ago (2014-02-03 19:25:55 UTC) #16
powei
https://codereview.chromium.org/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h File content/browser/renderer_host/compositor_impl_android.h (right): https://codereview.chromium.org/143803004/diff/420001/content/browser/renderer_host/compositor_impl_android.h#newcode64 content/browser/renderer_host/compositor_impl_android.h:64: size_t data_size, On 2014/02/03 18:51:13, aelias wrote: > On ...
6 years, 10 months ago (2014-02-03 23:39:10 UTC) #17
aelias_OOO_until_Jul13
https://codereview.chromium.org/143803004/diff/450002/content/browser/renderer_host/compositor_impl_android.cc File content/browser/renderer_host/compositor_impl_android.cc (right): https://codereview.chromium.org/143803004/diff/450002/content/browser/renderer_host/compositor_impl_android.cc#newcode350 content/browser/renderer_host/compositor_impl_android.cc:350: SkImageInfo info = {size.width(), size.height(), kPMColor_SkColorType, On 2014/02/03 23:39:11, ...
6 years, 10 months ago (2014-02-04 01:09:59 UTC) #18
powei
On 2014/02/04 01:09:59, aelias wrote: > https://codereview.chromium.org/143803004/diff/450002/content/browser/renderer_host/compositor_impl_android.cc > File content/browser/renderer_host/compositor_impl_android.cc (right): > > https://codereview.chromium.org/143803004/diff/450002/content/browser/renderer_host/compositor_impl_android.cc#newcode350 > ...
6 years, 10 months ago (2014-02-04 01:39:50 UTC) #19
aelias_OOO_until_Jul13
lgtm!
6 years, 10 months ago (2014-02-04 01:47:22 UTC) #20
powei
The CQ bit was checked by powei@chromium.org
6 years, 10 months ago (2014-02-04 17:49:00 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/143803004/790001
6 years, 10 months ago (2014-02-04 17:52:05 UTC) #22
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=223547
6 years, 10 months ago (2014-02-04 20:08:45 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/143803004/790001
6 years, 10 months ago (2014-02-04 20:11:11 UTC) #24
powei
The CQ bit was unchecked by powei@chromium.org
6 years, 10 months ago (2014-02-04 22:30:44 UTC) #25
powei
The CQ bit was checked by powei@chromium.org
6 years, 10 months ago (2014-02-04 22:30:58 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/143803004/790001
6 years, 10 months ago (2014-02-05 00:47:53 UTC) #27
commit-bot: I haz the power
Change committed as 248827
6 years, 10 months ago (2014-02-05 02:04:00 UTC) #28
powei
On 2014/02/05 02:04:00, I haz the power (commit-bot) wrote: > Change committed as 248827 Reverted ...
6 years, 10 months ago (2014-02-05 19:16:05 UTC) #29
powei
The CQ bit was checked by powei@chromium.org
6 years, 10 months ago (2014-02-05 19:16:21 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/143803004/790001
6 years, 10 months ago (2014-02-05 19:25:37 UTC) #31
commit-bot: I haz the power
Change committed as 249081
6 years, 10 months ago (2014-02-05 19:39:12 UTC) #32
powei
A revert of this CL has been created in https://codereview.chromium.org/151103010/ by powei@chromium.org. The reason for ...
6 years, 10 months ago (2014-02-06 00:04:10 UTC) #33
powei
On 2014/02/06 00:04:10, powei wrote: > A revert of this CL has been created in ...
6 years, 10 months ago (2014-02-06 18:17:08 UTC) #34
powei
The CQ bit was checked by powei@chromium.org
6 years, 10 months ago (2014-02-06 18:19:31 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/powei@chromium.org/143803004/1430001
6 years, 10 months ago (2014-02-06 18:24:10 UTC) #36
commit-bot: I haz the power
Change committed as 249453
6 years, 10 months ago (2014-02-06 18:31:11 UTC) #37
piman
6 years, 10 months ago (2014-02-06 20:34:55 UTC) #38
Message was sent while issue was closed.
On 2014/02/06 18:31:11, I haz the power (commit-bot) wrote:
> Change committed as 249453

Caused some failures because a test wasn't updated. Not sure why the CQ didn't
catch it.
http://build.chromium.org/p/chromium.linux/builders/Android%20Tests%20%28dbg%...

Powered by Google App Engine
This is Rietveld 408576698