|
Reland: Introduce GpuVideoDecodeAcceleratorFactory.
Original CL: https://codereview.chromium.org/1745903002.
This includes fixes from boliu@ for gn build.
TBR=kcwu@chromium.org,owenlin@chromium.org,sandersd@chromium.org,liberato@chromium.org,fsamuel@chromium.org,jochen@chromium.org,jam@chromium.org
Original message:
Introduce GpuVideoDecodeAcceleratorFactory.
- Move platform-specific code from GpuVideoDecodeAccelerator to
GpuVideoDecodeAcceleratorFactory.
- Make GVDAFactory a content/public interface, to provide the ability to
instantiate VDAs from outside content/.
- Unify how we obtain access to various GL functionality/classes from VDAs
by introducing a set of callbacks provided by the client.
- Replace VDA::CanDecodeOnIOThread() with
VDA::TryInitializeDecodeOnSeparateThread(). This allows us to remove
additional client/taskrunner arguments from VDA constructors, and give client
the option to use a separate thread to decode, instead of having to make this
decision in the factory, and enforcing these arguments in the constructors.
- Deduplicate VDA creation code across users (currently GVDA and vdaunittest).
BUG=b/27687678
TEST=compile/run various VDA impls
Committed: https://crrev.com/41c590cdfef6ce63694776f99a1b85584b485478
Cr-Commit-Position: refs/heads/master@{#385343}
Total comments: 2
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1110 lines, -589 lines) |
Patch |
|
M |
content/common/gpu/media/android_video_decode_accelerator.h
|
View
|
1
|
5 chunks |
+11 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/android_video_decode_accelerator.cc
|
View
|
1
|
8 chunks |
+44 lines, -33 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/android_video_decode_accelerator_unittest.cc
|
View
|
1
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
content/common/gpu/media/dxva_video_decode_accelerator_win.h
|
View
|
1
|
5 chunks |
+10 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/dxva_video_decode_accelerator_win.cc
|
View
|
1
|
12 chunks |
+31 lines, -19 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/fake_video_decode_accelerator.h
|
View
|
|
4 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/fake_video_decode_accelerator.cc
|
View
|
1
|
3 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/gpu_video_decode_accelerator.h
|
View
|
1
|
4 chunks |
+11 lines, -35 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/gpu_video_decode_accelerator.cc
|
View
|
1
|
6 chunks |
+82 lines, -198 lines |
0 comments
|
Download
|
|
A |
content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h
|
View
|
1
|
1 chunk |
+122 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.cc
|
View
|
1
|
1 chunk |
+241 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/common/gpu/media/gpu_video_decode_accelerator_helpers.h
|
View
|
1
|
1 chunk |
+59 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/rendering_helper.h
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/rendering_helper.cc
|
View
|
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/v4l2_slice_video_decode_accelerator.h
|
View
|
|
6 chunks |
+16 lines, -13 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/v4l2_slice_video_decode_accelerator.cc
|
View
|
1
|
14 chunks |
+40 lines, -22 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/v4l2_video_decode_accelerator.h
|
View
|
|
6 chunks |
+17 lines, -14 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/v4l2_video_decode_accelerator.cc
|
View
|
1
|
14 chunks |
+41 lines, -22 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_drm_picture.h
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_drm_picture.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_picture.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_picture.cc
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_tfp_picture.h
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_tfp_picture.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_video_decode_accelerator.h
|
View
|
1
|
5 chunks |
+13 lines, -10 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vaapi_video_decode_accelerator.cc
|
View
|
1
|
5 chunks |
+18 lines, -9 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/video_decode_accelerator_unittest.cc
|
View
|
1
|
9 chunks |
+49 lines, -120 lines |
1 comment
|
Download
|
|
M |
content/common/gpu/media/vt_video_decode_accelerator_mac.h
|
View
|
1
|
4 chunks |
+11 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/common/gpu/media/vt_video_decode_accelerator_mac.cc
|
View
|
1
|
6 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
|
M |
content/content_common.gypi
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/content_gpu.gypi
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/gpu/BUILD.gn
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/public/gpu/DEPS
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/public/gpu/gpu_video_decode_accelerator_factory.h
|
View
|
1
|
1 chunk |
+96 lines, -0 lines |
0 comments
|
Download
|
|
A |
content/public/gpu/gpu_video_decode_accelerator_factory.cc
|
View
|
|
1 chunk |
+68 lines, -0 lines |
0 comments
|
Download
|
|
M |
media/video/mock_video_decode_accelerator.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
media/video/video_decode_accelerator.h
|
View
|
1
|
3 chunks |
+39 lines, -15 lines |
0 comments
|
Download
|
|
M |
media/video/video_decode_accelerator.cc
|
View
|
|
1 chunk |
+5 lines, -3 lines |
0 comments
|
Download
|
Total messages: 22 (6 generated)
|