• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef DRM_PARAM_H
17 #define DRM_PARAM_H
18 
19 #include "feature_param.h"
20 
21 namespace OHOS::Rosen {
22 class DRMParam : public FeatureParam {
23 public:
24     DRMParam() = default;
25     ~DRMParam() = default;
26 
27     static bool IsDrmEnable();
28     static bool IsDrmMarkAllParentBlurEnable();
29     static const std::vector<std::string>& GetWhiteList();
30     static const std::vector<std::string>& GetBlackList();
31 
32 protected:
33     static void SetDrmEnable(bool isEnable);
34     static void SetDrmMarkAllParentBlurEnable(bool isEnable);
35     static void AddWhiteList(const std::string& name);
36     static void AddBlackList(const std::string& name);
37 
38 private:
39     inline static bool isDrmEnable_ = true;
40     inline static bool isDrmMarkAllParentBlurEnable_ = false;
41     inline static std::vector<std::string> whiteMarkBlurList_;
42     inline static std::vector<std::string> blackMarkBlurList_;
43 
44     friend class DRMParamParse;
45 };
46 } // namespace OHOS::Rosen
47 #endif // DRM_PARAM_H