Commit 17d81d87 authored by Zhenyao Mo's avatar Zhenyao Mo Committed by Commit Bot

Enable V4L2 VDA for cast devices

BUG=1032907
TEST=manual
R=kbr@chromium.org

Change-Id: Ib55c09a71093b10d55fd31daf49f090da81cf6d9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975089
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#726958}
parent 0ba9cab9
......@@ -186,6 +186,7 @@ jumbo_source_set("config_sources") {
":process_json",
"//base",
"//build:branding_buildflags",
"//build:chromecast_buildflags",
"//gpu/ipc/common:gpu_preferences_interface",
"//gpu/vulkan:buildflags",
"//media:media_buildflags",
......
......@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "base/trace_event/trace_event.h"
#include "build/build_config.h"
#include "build/chromecast_buildflags.h"
#include "gpu/config/gpu_info_collector.h"
#include "third_party/angle/src/gpu_info_util/SystemInfo.h"
......@@ -13,6 +15,13 @@ bool CollectContextGraphicsInfo(GPUInfo* gpu_info) {
TRACE_EVENT0("gpu", "gpu_info_collector::CollectGraphicsInfo");
#if BUILDFLAG(IS_CHROMECAST)
// Chromecast doesn't go through CollectBasicGraphicsInfo() step, so
// this is the only place we need to set machine model.
// TODO(zmo): maybe distinguish different Chromecast products.
gpu_info->machine_model_name = "Chromecast";
#endif // IS_CHROMECAST
return CollectGraphicsInfoGL(gpu_info);
}
......
......@@ -265,6 +265,7 @@ def write_machine_model_info(entry_id, is_exception, exception_id,
data_file, data_helper_file):
model_name_var_name = None
if machine_model_name:
assert isinstance(machine_model_name, list)
model_name_var_name = 'kMachineModelNameForEntry' + str(entry_id)
if is_exception:
model_name_var_name += 'Exception' + str(exception_id)
......
......@@ -335,10 +335,15 @@
{
"id": 48,
"description": "Accelerated video decode is unavailable on Linux",
"cr_bugs": [137247],
"cr_bugs": [137247, 1032907],
"os": {
"type": "linux"
},
"exceptions": [
{
"machine_model_name": ["Chromecast"]
}
],
"features": [
"accelerated_video_decode"
]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment