GLHelper: Split into gpu and media bits |
||||||
Issue descriptionGLHelper depends on both gpu and media. Maybe we should split GLHelper into gpu only bits and media bits, and place the gpu only bits in gpu/ipc/service, and the media bits in media/gpu/ipc/service?
,
Apr 11 2016
The code that I needed from GLHelper for mus is client-side utility code without ipc dependency so is gpu/ipc/service the right place? ui/gl maybe?
,
Apr 11 2016
Rob, I agree, gpu/ipc/service might not be the right place. ui/gl seems to make sense. Some unrelated thoughts from Antoine offline: It does too much, I agree. But I'm not sure cutting GLHelper around the media dependency is the right thing to do, that dependency is relatively small, but the API involved (ReadbackYUV) shares most of the code with the RGBA readback. media is only used for VideoFrame, to specify the 3 YUV planes. If the goal is only to remove the media dependency, my suggestion would be to change the interface to take the 3 YUV planes explicitly (data pointers and strides), that wouldn't depend on media, and keep a trivial wrapper that takes the VideoFrame and passes its planes to the new interface.
,
Apr 11 2016
Not ui/gl, which only concerns itself with service-side direct GL. GLHelper is on top of command buffers (GLES2Interface/ContextSupport). Some place in gpu/ would be ok. Be careful that it requires skia.
,
Apr 14 2016
I'll capture further cleanups in a separate bug. Right now I'd like to get the bits we need in mus in gpu/ and media/ so that they're shared with Chrome and Mus. We can dice GLHelper further after that.
,
Apr 15 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/59dcea480d282e78805de1c6e15ec29f4ebe7c9d commit 59dcea480d282e78805de1c6e15ec29f4ebe7c9d Author: fsamuel <fsamuel@chromium.org> Date: Fri Apr 15 21:27:48 2016 Decouple GLHelper from media We would like to share GLHelper with Mus. In order to do so, we would like to place this file in gpu/. Thus, it cannot depend on media/. This CL removes the dependency on media::VideoFrame by passing in the stride and data of the Y, U, and V planes into ReadbackYUV instead of passing in a media::VideoFrame. The callers are responsible for keeping media::VideoFrame alive now instead of ReadbackYUV. This CL also moves media::LetterboxYUV to the callers. BUG= 601866 Review URL: https://codereview.chromium.org/1893473002 Cr-Commit-Position: refs/heads/master@{#387701} [modify] https://crrev.com/59dcea480d282e78805de1c6e15ec29f4ebe7c9d/content/browser/compositor/gl_helper.cc [modify] https://crrev.com/59dcea480d282e78805de1c6e15ec29f4ebe7c9d/content/browser/compositor/gl_helper.h [modify] https://crrev.com/59dcea480d282e78805de1c6e15ec29f4ebe7c9d/content/browser/compositor/gl_helper_unittest.cc [modify] https://crrev.com/59dcea480d282e78805de1c6e15ec29f4ebe7c9d/content/browser/media/capture/aura_window_capture_machine.cc [modify] https://crrev.com/59dcea480d282e78805de1c6e15ec29f4ebe7c9d/content/browser/renderer_host/delegated_frame_host.cc [modify] https://crrev.com/59dcea480d282e78805de1c6e15ec29f4ebe7c9d/content/browser/renderer_host/delegated_frame_host.h
,
Apr 18 2016
,
Apr 18 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/a06a56680ea8e000140f30466b976b61308d152a commit a06a56680ea8e000140f30466b976b61308d152a Author: fsamuel <fsamuel@chromium.org> Date: Mon Apr 18 16:14:08 2016 Pull YUV Readback tests out of gl_helper_unittest I'd like to put GLHelper in gpu/ to be reused by mus. I'd like to put related unit tests next to gl_helper's final destination. To do so, I decoupled the tests from media. I split up the test into gl_helper_unittest and yuv_readback_unittest which depends on media. gl_helper_unittest can now live in gpu/ BUG= 601866 Review URL: https://codereview.chromium.org/1895443004 Cr-Commit-Position: refs/heads/master@{#387924} [modify] https://crrev.com/a06a56680ea8e000140f30466b976b61308d152a/content/browser/compositor/gl_helper_unittest.cc [add] https://crrev.com/a06a56680ea8e000140f30466b976b61308d152a/content/browser/compositor/yuv_readback_unittest.cc [modify] https://crrev.com/a06a56680ea8e000140f30466b976b61308d152a/content/content_tests.gypi [modify] https://crrev.com/a06a56680ea8e000140f30466b976b61308d152a/content/test/BUILD.gn
,
Apr 22 2016
,
Jun 13 2017
,
Feb 26 2018
|
||||||
►
Sign in to add a comment |
||||||
Comment 1 by fsam...@chromium.org
, Apr 8 2016