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

Issue 510553002: Teach the native viewport service to draw a Surface into itself (Closed)

Created:
6 years, 3 months ago by jamesr
Modified:
6 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Teach the native viewport service to draw a Surface into itself This teaches the native viewport service to accept a surface id from its client and draw it into the native viewport. This won't work if the client also tries to bind an onscreen context to the native viewport's view id, so the surface initialization is lazy and only happens when the client specifies a surface id. If a client does both it'll blow up. R=sky@chromium.org Committed: https://crrev.com/4ebfaeec388609951860700413edc800ff52cd60 Cr-Commit-Position: refs/heads/master@{#292548}

Patch Set 1 #

Total comments: 5

Patch Set 2 : move surface support stuff out to viewport_surface.cc #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -94 lines) Patch
M mojo/examples/compositor_app/compositor_app.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/examples/pepper_container_app/pepper_container_app.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/examples/sample_app/sample_app.cc View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/examples/surfaces_app/embedder.cc View 1 1 chunk +29 lines, -25 lines 0 comments Download
M mojo/examples/surfaces_app/surfaces_app.cc View 1 6 chunks +10 lines, -41 lines 0 comments Download
M mojo/mojo_services.gypi View 1 2 3 4 5 6 chunks +31 lines, -4 lines 0 comments Download
M mojo/services/native_viewport/BUILD.gn View 1 2 chunks +12 lines, -7 lines 0 comments Download
M mojo/services/native_viewport/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/services/native_viewport/native_viewport_impl.h View 1 2 3 chunks +16 lines, -3 lines 0 comments Download
M mojo/services/native_viewport/native_viewport_impl.cc View 1 2 3 chunks +36 lines, -7 lines 0 comments Download
A mojo/services/native_viewport/viewport_surface.h View 1 1 chunk +58 lines, -0 lines 0 comments Download
A mojo/services/native_viewport/viewport_surface.cc View 1 2 1 chunk +120 lines, -0 lines 0 comments Download
M mojo/services/public/interfaces/native_viewport/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/public/interfaces/native_viewport/native_viewport.mojom View 1 chunk +6 lines, -4 lines 0 comments Download
M mojo/services/public/interfaces/surfaces/BUILD.gn View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M mojo/services/public/interfaces/surfaces/surfaces.mojom View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/window_tree_host_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M mojo/shell/context.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
jamesr
https://codereview.chromium.org/510553002/diff/1/mojo/services/native_viewport/native_viewport_impl.cc File mojo/services/native_viewport/native_viewport_impl.cc (right): https://codereview.chromium.org/510553002/diff/1/mojo/services/native_viewport/native_viewport_impl.cc#newcode134 mojo/services/native_viewport/native_viewport_impl.cc:134: the rest of this function is an unfortunately large ...
6 years, 3 months ago (2014-08-26 23:05:50 UTC) #1
sky
https://codereview.chromium.org/510553002/diff/1/mojo/services/native_viewport/native_viewport_impl.cc File mojo/services/native_viewport/native_viewport_impl.cc (right): https://codereview.chromium.org/510553002/diff/1/mojo/services/native_viewport/native_viewport_impl.cc#newcode75 mojo/services/native_viewport/native_viewport_impl.cc:75: base::Unretained(this))); Is it possible for 'this' to be deleted ...
6 years, 3 months ago (2014-08-26 23:16:32 UTC) #2
jamesr
https://codereview.chromium.org/510553002/diff/1/mojo/services/native_viewport/native_viewport_impl.cc File mojo/services/native_viewport/native_viewport_impl.cc (right): https://codereview.chromium.org/510553002/diff/1/mojo/services/native_viewport/native_viewport_impl.cc#newcode75 mojo/services/native_viewport/native_viewport_impl.cc:75: base::Unretained(this))); On 2014/08/26 23:16:32, sky wrote: > Is it ...
6 years, 3 months ago (2014-08-26 23:17:23 UTC) #3
jamesr
PTAL. This moves the surfaces interactions out of NativeViewportImpl into a helper class. The helper ...
6 years, 3 months ago (2014-08-27 20:53:01 UTC) #4
sky
LGTM https://codereview.chromium.org/510553002/diff/40001/mojo/services/native_viewport/viewport_surface.h File mojo/services/native_viewport/viewport_surface.h (right): https://codereview.chromium.org/510553002/diff/40001/mojo/services/native_viewport/viewport_surface.h#newcode32 mojo/services/native_viewport/viewport_surface.h:32: void SetWidgetId(uint64_t widget_id); nit: no _t, the _t ...
6 years, 3 months ago (2014-08-27 21:44:14 UTC) #5
jamesr
On 2014/08/27 21:44:14, sky wrote: > LGTM > > https://codereview.chromium.org/510553002/diff/40001/mojo/services/native_viewport/viewport_surface.h > File mojo/services/native_viewport/viewport_surface.h (right): > ...
6 years, 3 months ago (2014-08-27 22:21:32 UTC) #6
sky
Sorry, my mistake. On Wed, Aug 27, 2014 at 3:21 PM, <jamesr@chromium.org> wrote: > On ...
6 years, 3 months ago (2014-08-27 22:50:39 UTC) #7
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 3 months ago (2014-08-27 23:55:26 UTC) #8
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 3 months ago (2014-08-27 23:57:45 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/510553002/80001
6 years, 3 months ago (2014-08-28 00:07:48 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 01:18:19 UTC) #11
commit-bot: I haz the power
Failed to commit the patch.
6 years, 3 months ago (2014-08-28 01:18:20 UTC) #12
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 3 months ago (2014-08-28 19:49:51 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/510553002/80001
6 years, 3 months ago (2014-08-28 19:51:31 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 19:54:51 UTC) #15
commit-bot: I haz the power
Failed to commit the patch.
6 years, 3 months ago (2014-08-28 19:54:52 UTC) #16
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 3 months ago (2014-08-28 21:56:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/510553002/100001
6 years, 3 months ago (2014-08-28 21:57:42 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 784be4ea464503566605b29f9e5e126dbba5c510
6 years, 3 months ago (2014-08-29 02:06:59 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:05:17 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4ebfaeec388609951860700413edc800ff52cd60
Cr-Commit-Position: refs/heads/master@{#292548}

Powered by Google App Engine
This is Rietveld 408576698