• 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 #ifndef RENDER_SERVICE_UI_PATTEN_VEC_H
16 #define RENDER_SERVICE_UI_PATTEN_VEC_H
17 
18 namespace OHOS {
19 namespace Rosen {
20 // subtree parallel judgment conditions vec
21 static const std::set<std::string> g_rbPattenVec = {
22     "GridItem",
23     "Grid",
24     "GridCol",
25     "Column",
26     "Row",
27     "ListItemGroup",
28     "ArcListItem",
29     "ListItem",
30     "List",
31     "NodeContainer",
32     "RelativeContainer",
33     "Stack",
34     "Swiper",
35     "FlowItem",
36     "WaterFlow",
37     "Scroll",
38     "TabBar",
39     "Custom",
40     "__Common__"
41 };
42 
CheckRbPatten(const std::string & tag)43 inline bool CheckRbPatten(const std::string& tag)
44 {
45     return g_rbPattenVec.find(tag) != g_rbPattenVec.end();
46 }
47 
48 } // namespace Rosen
49 } // namespace OHOS
50 
51 #endif // RENDER_SERVICE_UI_PATTEN_VEC_H