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

Issue 17971002: Make RenderWidgetHostViewAura::CopyFromCompositingSurface readback layer (Closed)

Created:
7 years, 6 months ago by danakj
Modified:
7 years, 5 months ago
Reviewers:
piman
CC:
chromium-reviews, yusukes+watch_chromium.org, jonathan.backer, Ian Vollick, jam, penghuang+watch_chromium.org, apatrick_chromium, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, James Su
Visibility:
Public.

Description

aura: Make RenderWidgetHostViewAura::CopyFromCompositingSurface readback layer Currently CopyFromCompositingSurface does an async texture readback of current_surface_ which depends on the renderer compositor sending textures to the browser compositor. Under ubercomp, however, the current_surface_ will not exist. The cc/ compositor now supports async readback of layers. This uses the new mechanism to get the contents of the RWHVA's ui::Layer instead which is always available. The result of this readback can be a texture or a bitmap (when using software compositing). The result read by the compositor will already be cropped. If the result is a texture, we use the GLHelper to scale the result to the desired size. If it is a bitmap, we use skia::ImageOperations::Resize to do the same. R=piman BUG=162291 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=210106

Patch Set 1 #

Patch Set 2 : tabcapture-aura: skia::ImageOps::Resize #

Patch Set 3 : tabcapture-aura: fix crash with lock #

Patch Set 4 : tabcapture-aura: add test and fix IsSurfaceAvailableForCopy #

Total comments: 6

Patch Set 5 : tabcapture-aura: fixstuffforbots #

Patch Set 6 : tabcapture-aura: nits #

Patch Set 7 : tabcapture-aura: keep earlyout #

Patch Set 8 : tabcapture-aura: use js automation to wait for page load to really complete, i hope #

Patch Set 9 : tabcapture-aura: DidReceiveRendererFrame #

Total comments: 12

Patch Set 10 : tabcapture-aura: Some fixes not windows #

Patch Set 11 : tabcapture-aura: Move calls to RWHImpl #

Total comments: 2

Patch Set 12 : tabcapture-aura: Missing PostSub #

Patch Set 13 : tabcapture-aura: SpellingIsHardLetsGoShopping #

Unified diffs Side-by-side diffs Delta from patch set Stats (+649 lines, -64 lines) Patch
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +11 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 2 chunks +14 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +113 lines, -44 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.cc View 1 2 3 4 5 6 7 8 2 chunks +10 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 3 4 5 6 7 8 12 chunks +416 lines, -14 lines 0 comments Download
M content/common/gpu/client/gl_helper.h View 3 chunks +27 lines, -0 lines 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 2 3 4 5 6 7 3 chunks +28 lines, -0 lines 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
danakj
Not sure if there are tests for this. If there is and I broke things, ...
7 years, 6 months ago (2013-06-26 23:31:03 UTC) #1
piman
LGTM!
7 years, 6 months ago (2013-06-27 00:49:24 UTC) #2
danakj
On Wed, Jun 26, 2013 at 8:49 PM, <piman@chromium.org> wrote: > LGTM! > Thanks! I ...
7 years, 5 months ago (2013-06-27 16:02:46 UTC) #3
piman
lgtm
7 years, 5 months ago (2013-06-27 19:39:12 UTC) #4
danakj
Ok, I added 4 browser tests for this that are pixel tests. Woo. They check ...
7 years, 5 months ago (2013-06-28 02:53:21 UTC) #5
danakj
On 2013/06/28 02:53:21, danakj wrote: > Ok, I added 4 browser tests for this that ...
7 years, 5 months ago (2013-06-28 02:54:09 UTC) #6
piman
Thanks for the tests! I have 2 things. https://codereview.chromium.org/17971002/diff/27001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/17971002/diff/27001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode459 content/browser/renderer_host/render_widget_host_view_browsertest.cc:459: base::MessageLoop::current()->Quit(); ...
7 years, 5 months ago (2013-06-28 03:23:13 UTC) #7
danakj
https://codereview.chromium.org/17971002/diff/27001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/17971002/diff/27001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode459 content/browser/renderer_host/render_widget_host_view_browsertest.cc:459: base::MessageLoop::current()->Quit(); On 2013/06/28 03:23:13, piman wrote: > You can ...
7 years, 5 months ago (2013-06-28 16:50:12 UTC) #8
danakj
It looks like the bot doesn't like me using the real compositor. I wonder what ...
7 years, 5 months ago (2013-06-28 16:51:59 UTC) #9
piman
I think you're running in the same problems as hubbe@ in https://codereview.chromium.org/17904008/ The solution would ...
7 years, 5 months ago (2013-06-28 16:56:05 UTC) #10
danakj
Thanks, trying out the command line flag for the bots. https://codereview.chromium.org/17971002/diff/27001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/17971002/diff/27001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode459 ...
7 years, 5 months ago (2013-06-28 17:58:38 UTC) #11
piman
LGTM3
7 years, 5 months ago (2013-06-28 19:46:51 UTC) #12
danakj
Hm, my tests are all reading white pixels.. I must need to wait for something, ...
7 years, 5 months ago (2013-06-28 21:33:12 UTC) #13
danakj
Added dom automation events to the html files that are loaded, and waiting on them ...
7 years, 5 months ago (2013-06-28 23:05:41 UTC) #14
danakj
On 2013/06/28 23:05:41, danakj wrote: > Added dom automation events to the html files that ...
7 years, 5 months ago (2013-06-29 01:19:40 UTC) #15
piman
On Fri, Jun 28, 2013 at 6:19 PM, <danakj@chromium.org> wrote: > On 2013/06/28 23:05:41, danakj ...
7 years, 5 months ago (2013-06-29 01:35:35 UTC) #16
danakj
On Fri, Jun 28, 2013 at 9:35 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
7 years, 5 months ago (2013-06-29 03:08:37 UTC) #17
danakj
Ok I did something more drastic and this seems to have worked. PTAL and let ...
7 years, 5 months ago (2013-06-29 17:30:39 UTC) #18
piman
https://codereview.chromium.org/17971002/diff/64001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/17971002/diff/64001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode609 content/browser/renderer_host/render_widget_host_view_android.cc:609: DidReceiveRendererFrame(); I don't know if we need to handle ...
7 years, 5 months ago (2013-07-02 01:49:08 UTC) #19
danakj
https://codereview.chromium.org/17971002/diff/64001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/17971002/diff/64001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode560 content/browser/renderer_host/render_widget_host_view_browsertest.cc:560: RenderWidgetHostImpl::From(rwh)->ScheduleComposite(); On 2013/07/02 01:49:09, piman wrote: > So, ScheduleComposite ...
7 years, 5 months ago (2013-07-03 01:08:44 UTC) #20
danakj
https://codereview.chromium.org/17971002/diff/64001/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/17971002/diff/64001/content/browser/renderer_host/render_widget_host_view_android.cc#newcode609 content/browser/renderer_host/render_widget_host_view_android.cc:609: DidReceiveRendererFrame(); On 2013/07/02 01:49:09, piman wrote: > I don't ...
7 years, 5 months ago (2013-07-03 18:05:39 UTC) #21
piman
https://codereview.chromium.org/17971002/diff/95001/content/browser/gpu/gpu_process_host_ui_shim.cc File content/browser/gpu/gpu_process_host_ui_shim.cc (right): https://codereview.chromium.org/17971002/diff/95001/content/browser/gpu/gpu_process_host_ui_shim.cc#newcode371 content/browser/gpu/gpu_process_host_ui_shim.cc:371: view->AcceleratedSurfacePostSubBuffer(params, host_id_); also needed here...
7 years, 5 months ago (2013-07-03 20:31:52 UTC) #22
piman
LGTM4 after that
7 years, 5 months ago (2013-07-03 20:32:05 UTC) #23
danakj
https://codereview.chromium.org/17971002/diff/95001/content/browser/gpu/gpu_process_host_ui_shim.cc File content/browser/gpu/gpu_process_host_ui_shim.cc (right): https://codereview.chromium.org/17971002/diff/95001/content/browser/gpu/gpu_process_host_ui_shim.cc#newcode371 content/browser/gpu/gpu_process_host_ui_shim.cc:371: view->AcceleratedSurfacePostSubBuffer(params, host_id_); On 2013/07/03 20:31:53, piman wrote: > also ...
7 years, 5 months ago (2013-07-03 20:34:08 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/17971002/94006
7 years, 5 months ago (2013-07-03 20:36:50 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/17971002/110002
7 years, 5 months ago (2013-07-04 01:04:56 UTC) #26
commit-bot: I haz the power
7 years, 5 months ago (2013-07-04 02:23:09 UTC) #27
Message was sent while issue was closed.
Change committed as 210106

Powered by Google App Engine
This is Rietveld 408576698