1 #include "com_android_graphics_hwui_flags.h" 2 3 4 5 6 7 8 namespace com::android::graphics::hwui::flags { 9 10 class flag_provider : public flag_provider_interface { 11 public: 12 13 animate_hdr_transitions()14 virtual bool animate_hdr_transitions() override { 15 return true; 16 } animated_image_drawable_filter_bitmap()17 virtual bool animated_image_drawable_filter_bitmap() override { 18 return false; 19 } bitmap_ashmem_long_name()20 virtual bool bitmap_ashmem_long_name() override { 21 return false; 22 } clip_shader()23 virtual bool clip_shader() override { 24 return true; 25 } clip_surfaceviews()26 virtual bool clip_surfaceviews() override { 27 return false; 28 } draw_region()29 virtual bool draw_region() override { 30 return false; 31 } gainmap_animations()32 virtual bool gainmap_animations() override { 33 return true; 34 } gainmap_constructor_with_metadata()35 virtual bool gainmap_constructor_with_metadata() override { 36 return true; 37 } hdr_10bit_plus()38 virtual bool hdr_10bit_plus() override { 39 return true; 40 } high_contrast_text_luminance()41 virtual bool high_contrast_text_luminance() override { 42 return true; 43 } high_contrast_text_small_text_rect()44 virtual bool high_contrast_text_small_text_rect() override { 45 return false; 46 } initialize_gl_always()47 virtual bool initialize_gl_always() override { 48 return false; 49 } iso_gainmap_apis()50 virtual bool iso_gainmap_apis() override { 51 return false; 52 } limited_hdr()53 virtual bool limited_hdr() override { 54 return true; 55 } matrix_44()56 virtual bool matrix_44() override { 57 return true; 58 } query_global_priority()59 virtual bool query_global_priority() override { 60 return true; 61 } remove_vri_sketchy_destroy()62 virtual bool remove_vri_sketchy_destroy() override { 63 return false; 64 } requested_formats_v()65 virtual bool requested_formats_v() override { 66 return true; 67 } resample_gainmap_regions()68 virtual bool resample_gainmap_regions() override { 69 return true; 70 } runtime_color_filters_blenders()71 virtual bool runtime_color_filters_blenders() override { 72 return false; 73 } skip_eglmanager_telemetry()74 virtual bool skip_eglmanager_telemetry() override { 75 return false; 76 } 77 78 79 80 }; 81 82 std::unique_ptr<flag_provider_interface> provider_ = 83 std::make_unique<flag_provider>(); 84 } 85 86 com_android_graphics_hwui_flags_animate_hdr_transitions()87bool com_android_graphics_hwui_flags_animate_hdr_transitions() { 88 return true; 89 } 90 com_android_graphics_hwui_flags_animated_image_drawable_filter_bitmap()91bool com_android_graphics_hwui_flags_animated_image_drawable_filter_bitmap() { 92 return false; 93 } 94 com_android_graphics_hwui_flags_bitmap_ashmem_long_name()95bool com_android_graphics_hwui_flags_bitmap_ashmem_long_name() { 96 return false; 97 } 98 com_android_graphics_hwui_flags_clip_shader()99bool com_android_graphics_hwui_flags_clip_shader() { 100 return true; 101 } 102 com_android_graphics_hwui_flags_clip_surfaceviews()103bool com_android_graphics_hwui_flags_clip_surfaceviews() { 104 return false; 105 } 106 com_android_graphics_hwui_flags_draw_region()107bool com_android_graphics_hwui_flags_draw_region() { 108 return false; 109 } 110 com_android_graphics_hwui_flags_gainmap_animations()111bool com_android_graphics_hwui_flags_gainmap_animations() { 112 return true; 113 } 114 com_android_graphics_hwui_flags_gainmap_constructor_with_metadata()115bool com_android_graphics_hwui_flags_gainmap_constructor_with_metadata() { 116 return true; 117 } 118 com_android_graphics_hwui_flags_hdr_10bit_plus()119bool com_android_graphics_hwui_flags_hdr_10bit_plus() { 120 return true; 121 } 122 com_android_graphics_hwui_flags_high_contrast_text_luminance()123bool com_android_graphics_hwui_flags_high_contrast_text_luminance() { 124 return true; 125 } 126 com_android_graphics_hwui_flags_high_contrast_text_small_text_rect()127bool com_android_graphics_hwui_flags_high_contrast_text_small_text_rect() { 128 return false; 129 } 130 com_android_graphics_hwui_flags_initialize_gl_always()131bool com_android_graphics_hwui_flags_initialize_gl_always() { 132 return false; 133 } 134 com_android_graphics_hwui_flags_iso_gainmap_apis()135bool com_android_graphics_hwui_flags_iso_gainmap_apis() { 136 return false; 137 } 138 com_android_graphics_hwui_flags_limited_hdr()139bool com_android_graphics_hwui_flags_limited_hdr() { 140 return true; 141 } 142 com_android_graphics_hwui_flags_matrix_44()143bool com_android_graphics_hwui_flags_matrix_44() { 144 return true; 145 } 146 com_android_graphics_hwui_flags_query_global_priority()147bool com_android_graphics_hwui_flags_query_global_priority() { 148 return true; 149 } 150 com_android_graphics_hwui_flags_remove_vri_sketchy_destroy()151bool com_android_graphics_hwui_flags_remove_vri_sketchy_destroy() { 152 return false; 153 } 154 com_android_graphics_hwui_flags_requested_formats_v()155bool com_android_graphics_hwui_flags_requested_formats_v() { 156 return true; 157 } 158 com_android_graphics_hwui_flags_resample_gainmap_regions()159bool com_android_graphics_hwui_flags_resample_gainmap_regions() { 160 return true; 161 } 162 com_android_graphics_hwui_flags_runtime_color_filters_blenders()163bool com_android_graphics_hwui_flags_runtime_color_filters_blenders() { 164 return false; 165 } 166 com_android_graphics_hwui_flags_skip_eglmanager_telemetry()167bool com_android_graphics_hwui_flags_skip_eglmanager_telemetry() { 168 return false; 169 } 170 171