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

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.

Created:
3 years, 10 months ago by dshwang
Modified:
3 years, 8 months ago
CC:
cc-bugs_chromium.org, chromium-reviews, marcheu, Pawel Osciak
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: make resource keep video buffer format for hardware overlay. The below CL added gfx::BufferFormat to cc::ResourceProvider::Resource. https://codereview.chromium.org/2748903002 This CL makes cc::ResourceProvider::Resource keep gfx::BufferFormat for cc:StreamVideoDrawQuad as well. BUG=683347 TEST=run chromeos with --enable-hardware-overlays on http://www.quirksmode.org/html5/tests/video.html existing cc_unittests CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Patch Set 1 #

Total comments: 2

Patch Set 2 : plumbing video format to ozone #

Total comments: 1

Patch Set 3 : make Resource keep video buffer format #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -2 lines) Patch
M cc/layers/video_layer_impl.cc View 1 2 2 chunks +54 lines, -0 lines 0 comments Download
M cc/output/overlay_candidate.cc View 1 2 1 chunk +4 lines, -0 lines 2 comments Download
M cc/resources/resource_provider.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M cc/resources/video_resource_updater.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (17 generated)
dshwang
ccameron@, could you review? https://codereview.chromium.org/2648633005/ is waiting for this CL, because the CL want to ...
3 years, 10 months ago (2017-02-08 18:54:36 UTC) #5
Daniele Castagna
On 2017/02/08 at 18:54:36, dongseong.hwang wrote: > ccameron@, could you review? > https://codereview.chromium.org/2648633005/ is waiting ...
3 years, 10 months ago (2017-02-08 18:59:48 UTC) #6
Daniele Castagna
On 2017/02/08 at 18:59:48, Daniele Castagna wrote: > On 2017/02/08 at 18:54:36, dongseong.hwang wrote: > ...
3 years, 10 months ago (2017-02-08 19:54:12 UTC) #7
dshwang
Now we don't hardcode RGBA for StreamVideoDrawQuad overlay. On 2017/02/08 18:59:48, Daniele Castagna wrote: > ...
3 years, 10 months ago (2017-02-09 00:03:55 UTC) #13
Daniele Castagna
On 2017/02/09 at 00:03:55, dongseong.hwang wrote: > Now we don't hardcode RGBA for StreamVideoDrawQuad overlay. ...
3 years, 10 months ago (2017-02-09 04:01:08 UTC) #17
dshwang
On 2017/02/09 04:01:08, Daniele Castagna wrote: > https://codereview.chromium.org/2683763003/diff/1/components/display_compositor/compositor_overlay_candidate_validator_ozone.cc#newcode94 > > > components/display_compositor/compositor_overlay_candidate_validator_ozone.cc:94: > ozone_surface_list.at(i).format = ...
3 years, 10 months ago (2017-02-09 05:10:22 UTC) #18
dshwang
Daniele, can we make restart this review? It's rather refactorying than GMB something.
3 years, 9 months ago (2017-03-07 21:32:23 UTC) #19
Daniele Castagna
On 2017/03/07 at 21:32:23, dongseong.hwang wrote: > Daniele, can we make restart this review? It's ...
3 years, 9 months ago (2017-03-09 02:45:09 UTC) #20
Daniele Castagna
On 2017/03/09 at 02:45:09, Daniele Castagna wrote: > On 2017/03/07 at 21:32:23, dongseong.hwang wrote: > ...
3 years, 9 months ago (2017-03-13 22:50:37 UTC) #21
dshwang
Hi Daniele, this CL plumbing video format to cc::resource for overlay. Could you review?
3 years, 9 months ago (2017-03-28 01:52:42 UTC) #25
Daniele Castagna
https://codereview.chromium.org/2683763003/diff/40001/cc/output/overlay_candidate.cc File cc/output/overlay_candidate.cc (right): https://codereview.chromium.org/2683763003/diff/40001/cc/output/overlay_candidate.cc#newcode289 cc/output/overlay_candidate.cc:289: candidate->format = resource_provider->GetBufferFormat(quad->resource_id()); We're not supposed to use the ...
3 years, 9 months ago (2017-03-28 02:01:39 UTC) #26
dshwang
3 years, 8 months ago (2017-03-28 16:42:25 UTC) #29
https://codereview.chromium.org/2683763003/diff/40001/cc/output/overlay_candi...
File cc/output/overlay_candidate.cc (right):

https://codereview.chromium.org/2683763003/diff/40001/cc/output/overlay_candi...
cc/output/overlay_candidate.cc:289: candidate->format =
resource_provider->GetBufferFormat(quad->resource_id());
On 2017/03/28 02:01:39, Daniele Castagna wrote:
> We're not supposed to use the StreamVideoQuad on CrOS.
> StreamVideoQuad was added for Android and it is accidentally used in CrOS at
the
> moment.
> 
> crrev.com/2763223003 to limit the usage only to Android.

wow, that's why cros use StreamVideoQuad recently.

By the way, this CL is still valid, because it's not very related to
StreamVideoQuad. It rather makes video_layer_impl set buffer format to resource
for mailbox resource. Without this change, TextureQuad from video cannot know
buffer format. In addition, even though this line isn't used by cros, I think
it's not bad to keep it.

Powered by Google App Engine
This is Rietveld 408576698