Edit

kc3-lang/angle/android/res/xml

Branch :

  • Show log

    Commit

  • Author : Tim Van Patten
    Date : 2018-12-04 12:24:50
    Hash : 18af9a5a
    Message : ANGLE In Use Dialog Box When ANGLE is enabled for an app, show a dialog box to the user to indicate that ANGLE is in use. This is useful because there are not (or at least shouldn't be) any visual indication that a different OpenGL driver is in use. Clean up some missed renaming/logging related to the "Enable ANGLE for all" setting. Bug: angleproject:3006 Test: Load an app with ANGLE enabled and verify dialog box is shown. Test: Load an app without ANGLE and verify dialog box is not shown. Change-Id: I46ec89567c93efaf156a4801948cd48aabd5f4fb Reviewed-on: https://chromium-review.googlesource.com/c/1383374 Reviewed-by: Tobin Ehlis <tobine@google.com> Reviewed-by: Courtney Goeltzenleuchter <courtneygo@google.com> Commit-Queue: Tim Van Patten <timvp@google.com>

  • main.xml
  • <?xml version="1.0" encoding="utf-8"?>
    <!--
      Copyright 2018 The ANGLE Project Authors. All rights reserved.  Use of this
      source code is governed by a BSD-style license that can be found in the
      LICENSE file.
    -->
    
    <android.support.v7.preference.PreferenceScreen
        xmlns:android="http://schemas.android.com/apk/res/android">
    
        <PreferenceCategory
            android:key="@string/pref_key_angle_flags_category"
            android:title="@string/angle_general_title">
    
            <!--TODO : Issue 2989 : boulder-graphics-team@google.com
            Enable the switch once Android can boot with ANGLE enabled for everything-->
            <android.support.v14.preference.SwitchPreference
                android:key="@string/pref_key_all_angle"
                android:title="@string/use_angle_for_all_apps"
                android:summary="@string/global_settings_driver_all_angle"
                android:defaultValue="false"
                android:enabled="false"/>
    
            <android.support.v14.preference.SwitchPreference
                android:key="@string/pref_key_angle_in_use_dialog"
                android:title="@string/show_angle_in_use_dialog_box"
                android:summary="@string/global_settings_angle_in_use_dialog_box"
                android:defaultValue="false"
                android:enabled="true"/>
        </PreferenceCategory>
    
        <PreferenceCategory
            android:key="@string/pref_key_select_opengl_driver_category"
            android:title="@string/select_opengl_driver_title">
    
        </PreferenceCategory>
    
    </android.support.v7.preference.PreferenceScreen>