Move chrome/browser/ash/arc/video/ to chromeos/ash/experiences/arc/video
Bug: b:388689034 Change-Id: Id952c01f905de6b6b9ee2f7279b4e90b4a0887c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6162057 Reviewed-by: Matthew Denton <mpdenton@chromium.org> Reviewed-by: Hidehiko Abe <hidehiko@chromium.org> Commit-Queue: Jun Ishiguro <junis@google.com> Reviewed-by: Dave Tapuska <dtapuska@chromium.org> Cr-Commit-Position: refs/heads/main@{#1405847}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
79e0891204
commit
5329878a61
chrome/browser/ash
chromeos/ash/experiences/arc/video
media/gpu/sandbox
sandbox/policy/linux
@@ -83,7 +83,6 @@ static_library("session") {
|
||||
"//chrome/browser/ash/arc/tracing",
|
||||
"//chrome/browser/ash/arc/tts",
|
||||
"//chrome/browser/ash/arc/user_session",
|
||||
"//chrome/browser/ash/arc/video",
|
||||
"//chrome/browser/ash/arc/vmm",
|
||||
"//chrome/browser/ash/arc/wallpaper",
|
||||
"//chrome/browser/ash/crostini",
|
||||
@@ -118,6 +117,7 @@ static_library("session") {
|
||||
"//chromeos/ash/experiences/arc/intent_helper",
|
||||
"//chromeos/ash/experiences/arc/media_session",
|
||||
"//chromeos/ash/experiences/arc/oemcrypto",
|
||||
"//chromeos/ash/experiences/arc/video",
|
||||
"//chromeos/ash/services/cros_healthd/public/cpp",
|
||||
"//chromeos/ash/services/cros_healthd/public/mojom",
|
||||
"//chromeos/dbus/tpm_manager",
|
||||
|
@@ -70,7 +70,6 @@
|
||||
#include "chrome/browser/ash/arc/tracing/arc_tracing_bridge.h"
|
||||
#include "chrome/browser/ash/arc/tts/arc_tts_service.h"
|
||||
#include "chrome/browser/ash/arc/user_session/arc_user_session_service.h"
|
||||
#include "chrome/browser/ash/arc/video/gpu_arc_video_service_host.h"
|
||||
#include "chrome/browser/ash/arc/vmm/arc_system_state_bridge.h"
|
||||
#include "chrome/browser/ash/arc/vmm/arc_vmm_manager.h"
|
||||
#include "chrome/browser/ash/arc/wallpaper/arc_wallpaper_service.h"
|
||||
@@ -107,6 +106,7 @@
|
||||
#include "chromeos/ash/experiences/arc/session/arc_session.h"
|
||||
#include "chromeos/ash/experiences/arc/session/arc_session_runner.h"
|
||||
#include "chromeos/ash/experiences/arc/system_ui/arc_system_ui_bridge.h"
|
||||
#include "chromeos/ash/experiences/arc/video/gpu_arc_video_service_host.h"
|
||||
#include "components/prefs/pref_member.h"
|
||||
#include "mojo/public/cpp/bindings/pending_remote.h"
|
||||
|
||||
|
@@ -1,20 +0,0 @@
|
||||
include_rules = [
|
||||
# ChromeOS should not depend on //chrome. See //docs/chromeos/code.md for
|
||||
# details.
|
||||
"-chrome",
|
||||
|
||||
# This directory is in //chrome, which violates the rule above. Allow this
|
||||
# directory to #include its own files.
|
||||
"+chrome/browser/ash/arc/video",
|
||||
|
||||
# Existing dependencies within //chrome. There is an active effort to
|
||||
# refactor //chrome/browser/ash to break these dependencies; see b/332804822.
|
||||
# Whenever possible, avoid adding new //chrome dependencies to this list.
|
||||
#
|
||||
# Files residing in certain directories (e.g., //chrome/browser) are listed
|
||||
# individually. Other dependencies within //chrome are listed on a per-
|
||||
# directory basis. See //tools/chromeos/gen_deps.sh for details.
|
||||
|
||||
# Dependencies outside of //chrome:
|
||||
"+mojo/core",
|
||||
]
|
@@ -79,7 +79,6 @@ static_library("dbus") {
|
||||
"//chrome/browser/ash/arc/fileapi",
|
||||
"//chrome/browser/ash/arc/session",
|
||||
"//chrome/browser/ash/arc/tracing",
|
||||
"//chrome/browser/ash/arc/video",
|
||||
"//chrome/browser/ash/crostini",
|
||||
"//chrome/browser/ash/login/lock",
|
||||
"//chrome/browser/ash/net",
|
||||
@@ -155,6 +154,7 @@ static_library("dbus") {
|
||||
"//chromeos/ash/components/language_packs",
|
||||
"//chromeos/ash/components/settings",
|
||||
"//chromeos/ash/experiences/arc/session",
|
||||
"//chromeos/ash/experiences/arc/video",
|
||||
"//chromeos/ash/services/rollback_network_config/public/mojom",
|
||||
"//chromeos/components/mojo_bootstrap",
|
||||
"//chromeos/dbus/constants",
|
||||
|
@@ -19,7 +19,7 @@ include_rules = [
|
||||
"+chrome/browser/ash/arc/session",
|
||||
"+chrome/browser/ash/arc/test",
|
||||
"+chrome/browser/ash/arc/tracing",
|
||||
"+chrome/browser/ash/arc/video",
|
||||
"+chromeos/ash/experiences/arc/video",
|
||||
"+chrome/browser/ash/borealis",
|
||||
"+chrome/browser/ash/crostini",
|
||||
"+chrome/browser/ash/exo",
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#include <utility>
|
||||
|
||||
#include "base/functional/bind.h"
|
||||
#include "chrome/browser/ash/arc/video/gpu_arc_video_service_host.h"
|
||||
#include "chromeos/ash/experiences/arc/video/gpu_arc_video_service_host.h"
|
||||
#include "dbus/bus.h"
|
||||
#include "dbus/message.h"
|
||||
#include "mojo/public/cpp/system/platform_handle.h"
|
||||
|
3
chromeos/ash/experiences/arc/video/DEPS
Normal file
3
chromeos/ash/experiences/arc/video/DEPS
Normal file
@@ -0,0 +1,3 @@
|
||||
include_rules = [
|
||||
"+content/public/common/content_switches.h",
|
||||
]
|
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "chrome/browser/ash/arc/video/gpu_arc_video_service_host.h"
|
||||
#include "chromeos/ash/experiences/arc/video/gpu_arc_video_service_host.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
@@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef CHROME_BROWSER_ASH_ARC_VIDEO_GPU_ARC_VIDEO_SERVICE_HOST_H_
|
||||
#define CHROME_BROWSER_ASH_ARC_VIDEO_GPU_ARC_VIDEO_SERVICE_HOST_H_
|
||||
#ifndef CHROMEOS_ASH_EXPERIENCES_ARC_VIDEO_GPU_ARC_VIDEO_SERVICE_HOST_H_
|
||||
#define CHROMEOS_ASH_EXPERIENCES_ARC_VIDEO_GPU_ARC_VIDEO_SERVICE_HOST_H_
|
||||
|
||||
#include "ash/components/arc/mojom/video.mojom.h"
|
||||
#include "base/memory/raw_ptr.h"
|
||||
@@ -70,4 +70,4 @@ class GpuArcVideoKeyedService : public KeyedService {
|
||||
|
||||
} // namespace arc
|
||||
|
||||
#endif // CHROME_BROWSER_ASH_ARC_VIDEO_GPU_ARC_VIDEO_SERVICE_HOST_H_
|
||||
#endif // CHROMEOS_ASH_EXPERIENCES_ARC_VIDEO_GPU_ARC_VIDEO_SERVICE_HOST_H_
|
@@ -24,10 +24,10 @@ using sandbox::syscall_broker::BrokerFilePermission;
|
||||
// to exist only in those configurations so that the presandbox hook is only
|
||||
// compiled in those scenarios. As it is now, kHardwareVideoDecoding exists for
|
||||
// all ash-chrome builds because
|
||||
// chrome/browser/ash/arc/video/gpu_arc_video_service_host.cc depends on it and
|
||||
// that file is built for ash-chrome regardless of VA-API/V4L2. That means that
|
||||
// bots like linux-chromeos-rel end up compiling this presandbox hook (thus the
|
||||
// NOTREACHED()s in some places here).
|
||||
// chromeos/ash/experiences/arc/video/gpu_arc_video_service_host.cc depends on
|
||||
// it and that file is built for ash-chrome regardless of VA-API/V4L2. That
|
||||
// means that bots like linux-chromeos-rel end up compiling this presandbox hook
|
||||
// (thus the NOTREACHED()s in some places here).
|
||||
|
||||
namespace media {
|
||||
namespace {
|
||||
|
@@ -107,10 +107,10 @@ bool HardwareVideoEncodingPreSandboxHook(
|
||||
// sandbox type to exist only in those configurations so that the presandbox
|
||||
// hook is only reached in those scenarios. As it is now,
|
||||
// kHardwareVideoEncoding exists for all ash-chrome builds because
|
||||
// chrome/browser/ash/arc/video/gpu_arc_video_service_host.cc is expected to
|
||||
// depend on it eventually and that file is built for ash-chrome regardless
|
||||
// of VA-API/V4L2. That means that bots like linux-chromeos-rel would end up
|
||||
// reaching this presandbox hook.
|
||||
// chromeos/ash/experiences/arc/video/gpu_arc_video_service_host.cc is
|
||||
// expected to depend on it eventually and that file is built for ash-chrome
|
||||
// regardless of VA-API/V4L2. That means that bots like linux-chromeos-rel
|
||||
// would end up reaching this presandbox hook.
|
||||
#if BUILDFLAG(USE_VAAPI)
|
||||
VaapiWrapper::PreSandboxInitialization(/*allow_disabling_global_lock=*/true);
|
||||
|
||||
|
@@ -44,9 +44,9 @@ HardwareVideoDecodingProcessPolicy::ComputePolicyType(
|
||||
// sandbox type to exist only in those configurations so that the
|
||||
// HardwareVideoDecodingProcessPolicy is only compiled in those scenarios. As
|
||||
// it is now, kHardwareVideoDecoding exists for all ash-chrome builds because
|
||||
// chrome/browser/ash/arc/video/gpu_arc_video_service_host.cc depends on it
|
||||
// and that file is built for ash-chrome regardless of VA-API/V4L2. That means
|
||||
// that bots like linux-chromeos-rel end up compiling this policy.
|
||||
// chromeos/ash/experiences/arc/video/gpu_arc_video_service_host.cc depends on
|
||||
// it and that file is built for ash-chrome regardless of VA-API/V4L2. That
|
||||
// means that bots like linux-chromeos-rel end up compiling this policy.
|
||||
NOTREACHED();
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user