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

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)

Created:
4 years, 2 months ago by kylechar
Modified:
4 years, 2 months ago
CC:
anandc+watch-blimp_chromium.org, android-webview-reviews_chromium.org, bgoldman+watch-blimp_chromium.org, cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, dtrainor+watch-blimp_chromium.org, fuzzing_chromium.org, gcasto+watch-blimp_chromium.org, jam, jbauman+watch_chromium.org, jessicag+watch-blimp_chromium.org, kalyank, khushalsagar+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, piman+watch_chromium.org, rjkroege, scf+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, sievers+watch_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, Ian Vollick
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove GLFrameData from CompositorFrame. Split GLFrameData out of CompositorFrame. Create a new struct OutputSurfaceFrame that contains the parts of CompositorFrame need by OutputSurface::SwapBuffers(). Update OutputSurface implementations to use the new OutputSurfaceFrame struct instead. BUG=651851 TBR=dtrainor@chromium.org,fsamuel@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/5344b39e46eb35c82e09b6fabc5447dbf68ff393 Cr-Commit-Position: refs/heads/master@{#423746}

Patch Set 1 #

Patch Set 2 : Fixes. #

Patch Set 3 : Fix fuzzer. #

Patch Set 4 : Remove dead code / fix header. #

Patch Set 5 : Rebase + fix includes. #

Total comments: 30

Patch Set 6 : Address comments. #

Total comments: 2

Patch Set 7 : More fixes. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -239 lines) Patch
M android_webview/browser/hardware_renderer.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/browser/parent_output_surface.h View 1 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/parent_output_surface.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/client/support/compositor/blimp_embedder_compositor.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/BUILD.gn View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/ipc/cc_param_traits.cc View 1 2 3 4 5 6 4 chunks +0 lines, -12 lines 0 comments Download
M cc/ipc/cc_param_traits_macros.h View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M cc/layers/surface_layer_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/compositor_frame.h View 1 2 chunks +0 lines, -2 lines 0 comments Download
M cc/output/direct_renderer.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
D cc/output/gl_frame_data.h View 1 chunk +0 lines, -29 lines 0 comments Download
D cc/output/gl_frame_data.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 4 chunks +8 lines, -9 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 7 5 chunks +6 lines, -5 lines 0 comments Download
M cc/output/output_surface.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/output_surface.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A cc/output/output_surface_frame.h View 1 2 3 4 5 6 1 chunk +38 lines, -0 lines 0 comments Download
A cc/output/output_surface_frame.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
M cc/output/output_surface_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 4 chunks +6 lines, -6 lines 0 comments Download
M cc/output/software_renderer.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 2 chunks +5 lines, -6 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/display_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
M cc/test/fake_compositor_frame_sink.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 4 4 chunks +4 lines, -11 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 3 chunks +4 lines, -32 lines 0 comments Download
M cc/test/pixel_test_output_surface.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/pixel_test_output_surface.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/test_hooks.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -8 lines 0 comments Download
M content/browser/compositor/gpu_output_surface_mac.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_output_surface_mac.mm View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/mus_browser_compositor_output_surface.cc View 1 2 3 4 5 6 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -8 lines 0 comments Download
M content/browser/compositor/reflector_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface_unittest.cc View 1 2 3 4 4 chunks +4 lines, -5 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/android/synchronous_compositor_frame_sink.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M services/ui/surfaces/direct_output_surface.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/surfaces/direct_output_surface.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M services/ui/surfaces/direct_output_surface_ozone.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M services/ui/surfaces/direct_output_surface_ozone.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -8 lines 0 comments Download
M tools/ipc_fuzzer/fuzzer/fuzzer.cc View 1 2 3 4 5 6 1 chunk +1 line, -7 lines 0 comments Download
M ui/compositor/test/in_process_context_factory.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 42 (26 generated)
kylechar
I'm OOO Monday so no rush on reviewing.
4 years, 2 months ago (2016-09-30 21:18:20 UTC) #9
danakj
Thanks for working on this, it's great! https://codereview.chromium.org/2374183006/diff/120001/cc/output/compositor_frame.h File cc/output/compositor_frame.h (left): https://codereview.chromium.org/2374183006/diff/120001/cc/output/compositor_frame.h#oldcode34 cc/output/compositor_frame.h:34: std::unique_ptr<DelegatedFrameData> delegated_frame_data; ...
4 years, 2 months ago (2016-10-04 21:58:41 UTC) #11
kylechar
OutputSurfaceFrame could use a summary comment. Any suggestions? I have a cursory understand of what ...
4 years, 2 months ago (2016-10-05 13:45:55 UTC) #13
danakj
https://codereview.chromium.org/2374183006/diff/120001/content/browser/compositor/mus_browser_compositor_output_surface.cc File content/browser/compositor/mus_browser_compositor_output_surface.cc (right): https://codereview.chromium.org/2374183006/diff/120001/content/browser/compositor/mus_browser_compositor_output_surface.cc#newcode44 content/browser/compositor/mus_browser_compositor_output_surface.cc:44: ui_frame.metadata.latency_info = frame.latency_info; On 2016/10/05 13:45:54, kylechar wrote: > ...
4 years, 2 months ago (2016-10-05 23:02:20 UTC) #14
danakj
LGTM after that
4 years, 2 months ago (2016-10-05 23:02:29 UTC) #15
kylechar
https://codereview.chromium.org/2374183006/diff/120001/content/browser/compositor/mus_browser_compositor_output_surface.cc File content/browser/compositor/mus_browser_compositor_output_surface.cc (right): https://codereview.chromium.org/2374183006/diff/120001/content/browser/compositor/mus_browser_compositor_output_surface.cc#newcode44 content/browser/compositor/mus_browser_compositor_output_surface.cc:44: ui_frame.metadata.latency_info = frame.latency_info; On 2016/10/05 23:02:19, danakj wrote: > ...
4 years, 2 months ago (2016-10-06 14:16:55 UTC) #16
kylechar
michaelbai: android_webview/* dtrainor: blimp/* tsepez: cc/ipc/*, tools/ipc_fuzzers/* fsamuel: services/ui/surfaces/*
4 years, 2 months ago (2016-10-06 14:17:31 UTC) #18
kylechar
Oops, correct fsamuel this time. Also missing OWNERS for a couple last files. aelias: content/browser/renderer_host/compositor_impl_android.cc ...
4 years, 2 months ago (2016-10-06 14:20:46 UTC) #20
Tom Sepez
ipc/fuzzer LGTM
4 years, 2 months ago (2016-10-06 18:36:08 UTC) #22
michaelbai
add boliu for android_wevbiew
4 years, 2 months ago (2016-10-06 18:53:45 UTC) #25
boliu
android_webview and android bits in content lgtm
4 years, 2 months ago (2016-10-06 19:02:30 UTC) #26
aelias_OOO_until_Jul13
lgtm
4 years, 2 months ago (2016-10-06 19:05:38 UTC) #27
kylechar
Adding TBR for dtrainor@chromium.org and fsamuel@chromium.org
4 years, 2 months ago (2016-10-06 23:43:16 UTC) #35
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/2374183006/210001
4 years, 2 months ago (2016-10-06 23:44:09 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:210001)
4 years, 2 months ago (2016-10-06 23:51:50 UTC) #40
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 23:54:50 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/5344b39e46eb35c82e09b6fabc5447dbf68ff393
Cr-Commit-Position: refs/heads/master@{#423746}

Powered by Google App Engine
This is Rietveld 408576698