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

Issue 2748903002: cc: Add gfx::BufferFormat to cc::ResourceProvider::Resource. (Closed)

Created:
3 years, 9 months ago by Daniele Castagna
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, cc-bugs_chromium.org, chromium-reviews, darin (slow to review), qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Add gfx::BufferFormat to cc::ResourceProvider::Resource. cc::ResourceProvider::Resource::format corresponds to the format as seen from the compositor and/or GL. This format might not be the same as the actual buffer format that was used to create the resource. For example, a YUV buffer can be used to create a texture/resource with RGBX internalformat. The actual format of the buffer is needed to determine if configurations of quads/resources can be used as overlays. So far we always assumed the format for overlay candidates was RGBA. This CL adds a cc::ResourceProvider::Resource::buffer_format that is the format of the buffer used to create the resource. Exo code has been changed accordingly to add set the appropriate format. This CL just adds all the plumbing necessary to bring BufferFormat all the way to OverlayCandidate, but doesn't change any logic when creating overlay candidates. BUG=695296 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2748903002 Cr-Commit-Position: refs/heads/master@{#456573} Committed: https://chromium.googlesource.com/chromium/src/+/8409354a9334874b7d00d4f1379a0a2d62c8fbd7

Patch Set 1 #

Patch Set 2 : Always initialize buffer_format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M cc/ipc/cc_param_traits_macros.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/ipc/struct_traits_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/ipc/transferable_resource.mojom View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/ipc/transferable_resource_struct_traits.h View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/ipc/transferable_resource_struct_traits.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/overlay_candidate.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 3 chunks +11 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 6 chunks +10 lines, -0 lines 0 comments Download
M cc/resources/transferable_resource.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/resources/transferable_resource.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/exo/buffer.cc View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 24 (16 generated)
Daniele Castagna
3 years, 9 months ago (2017-03-13 22:50:48 UTC) #5
reveman
As discussed, I think this is reasonable short term but long term it would be ...
3 years, 9 months ago (2017-03-13 22:55:37 UTC) #6
Daniele Castagna
+rsesek for ownership of cc/ipc/*
3 years, 9 months ago (2017-03-13 22:56:42 UTC) #8
Robert Sesek
lgtm
3 years, 9 months ago (2017-03-13 22:57:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748903002/1
3 years, 9 months ago (2017-03-13 23:29:44 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/249347)
3 years, 9 months ago (2017-03-13 23:47:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748903002/20001
3 years, 9 months ago (2017-03-14 02:03:34 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-14 02:12:25 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/8409354a9334874b7d00d4f1379a...

Powered by Google App Engine
This is Rietveld 408576698