forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fuchsia] Stop using mediacodec.CodecFactory in renderer process
Added CreateVideoDecoder method to the FuchsiaMediaResourceProvider interface. The renderer process uses it to connect StreamProcessor for hardware decoder. This allows to avoid exposing fuchsia.mediacodec.CodecFactory to the renderer process. Bug: 1293605 Change-Id: Iefbeb63ecd11d28edca919a151c37a415164841d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3556806 Reviewed-by: Dan Sanders <sandersd@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Reviewed-by: David Dorwin <ddorwin@chromium.org> Reviewed-by: Daniel Cheng <dcheng@chromium.org> Reviewed-by: Peng Huang <penghuang@chromium.org> Commit-Queue: David Dorwin <ddorwin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1001190}
- Loading branch information
1 parent
a2887f1
commit c2956da
Showing
24 changed files
with
367 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Copyright 2022 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
source_set("video") { | ||
visibility = [ | ||
":unittests", | ||
"//content/renderer/*", | ||
] | ||
sources = [ | ||
"fuchsia_decoder_factory.cc", | ||
"fuchsia_decoder_factory.h", | ||
"fuchsia_video_decoder.cc", | ||
"fuchsia_video_decoder.h", | ||
] | ||
public_deps = [ "//third_party/fuchsia-sdk/sdk/fidl/fuchsia.media" ] | ||
deps = [ | ||
"//components/viz/common", | ||
"//gpu/command_buffer/client", | ||
"//gpu/command_buffer/common", | ||
"//gpu/ipc/common", | ||
"//media/fuchsia/cdm", | ||
"//media/fuchsia/common", | ||
"//media/fuchsia/mojom:fuchsia_media_resource_provider", | ||
"//third_party/blink/public/common", | ||
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.mediacodec", | ||
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.sysmem", | ||
"//third_party/fuchsia-sdk/sdk/pkg/sys_cpp", | ||
"//ui/ozone", | ||
] | ||
} | ||
|
||
source_set("unittests") { | ||
testonly = true | ||
sources = [ "fuchsia_video_decoder_unittest.cc" ] | ||
deps = [ | ||
":video", | ||
"//base/test:test_support", | ||
"//components/viz/common", | ||
"//components/viz/test:test_support", | ||
"//gpu/command_buffer/client", | ||
"//gpu/config", | ||
"//media:test_support", | ||
"//media/fuchsia/mojom:fuchsia_media_resource_provider", | ||
"//testing/gmock", | ||
"//testing/gtest", | ||
"//third_party/blink/public/common", | ||
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.mediacodec", | ||
"//third_party/fuchsia-sdk/sdk/fidl/fuchsia.sysmem", | ||
"//third_party/fuchsia-sdk/sdk/pkg/sys_cpp", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
include_rules = [ | ||
"+components/viz/common/gpu/raster_context_provider.h", | ||
"+mojo/public", | ||
"+third_party/blink/public", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
sergeyu@chromium.org | ||
file://build/fuchsia/OWNERS |
Oops, something went wrong.