CrosSafetyService: Add new safety ruleset for mantis outpainting
BUG=b:398084691 TEST=CQ Change-Id: I854206471086c65cfac7064bd3e11cae39b03aa7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6296543 Reviewed-by: Yi Chou <yich@google.com> Reviewed-by: Takashi Toyoshima <toyoshim@chromium.org> Commit-Queue: Sam Chen <chensa@google.com> Cr-Commit-Position: refs/heads/main@{#1424263}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
75ee3b7089
commit
fbd60a65b8
chromeos/ash/services/cros_safety
@ -32,6 +32,8 @@ std::optional<ImageType> ToWalrusImageType(SafetyRuleset ruleset) {
|
||||
return ImageType::kOutputImage;
|
||||
case SafetyRuleset::kMantisGeneratedRegion:
|
||||
return ImageType::kGeneratedRegion;
|
||||
case SafetyRuleset::kMantisGeneratedRegionOutpainting:
|
||||
return ImageType::kGeneratedRegionOutpainting;
|
||||
default:
|
||||
LOG(WARNING) << "Unexpected ruleset for Walrus filter: " << ruleset;
|
||||
return std::nullopt;
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright 2024 The Chromium Authors
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
// Next MinVersion: 3
|
||||
// Next MinVersion: 4
|
||||
|
||||
module ash.cros_safety.mojom;
|
||||
|
||||
@ -48,6 +48,7 @@ enum SafetyRuleset {
|
||||
[MinVersion=1] kMantisOutputImage,
|
||||
[MinVersion=1] kMantisGeneratedRegion,
|
||||
[MinVersion=1] kCoral,
|
||||
[MinVersion=3] kMantisGeneratedRegionOutpainting,
|
||||
};
|
||||
|
||||
// CloudSafetySession is implemented within CrosSafetyService which connects
|
||||
|
Reference in New Issue
Block a user