From d59fd0fb6559f5c0ad16f02243a7dae56141817b Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 24 Oct 2019 17:11:12 -0400 Subject: [PATCH] Update to ANGLE 2.1.15 nuget package. --- python/servo/build_commands.py | 2 +- support/hololens/ServoApp/ServoApp.vcxproj | 4 ++-- .../ServoApp/ServoControl/OpenGLES.cpp | 24 ++++++++----------- support/hololens/ServoApp/packages.config | 2 +- 4 files changed, 14 insertions(+), 18 deletions(-) diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 7c4eda9950a1..6702c571f3a7 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -787,7 +787,7 @@ def angle_root(target, nuget_env): } angle_arch = arch[target.split('-')[0]] angle_default_path = path.join(os.getcwd(), "support", "hololens", "packages", - "ANGLE.WindowsStore.Servo.2.1.13", "bin", "UAP", angle_arch) + "ANGLE.WindowsStore.Servo.2.1.15", "bin", "UAP", angle_arch) # Nuget executable command nuget_app = path.join(os.getcwd(), "support", "hololens", "ServoApp.sln") diff --git a/support/hololens/ServoApp/ServoApp.vcxproj b/support/hololens/ServoApp/ServoApp.vcxproj index 15b4cec909df..faebf1e00d58 100644 --- a/support/hololens/ServoApp/ServoApp.vcxproj +++ b/support/hololens/ServoApp/ServoApp.vcxproj @@ -947,8 +947,8 @@ - + @@ -956,8 +956,8 @@ - + \ No newline at end of file diff --git a/support/hololens/ServoApp/ServoControl/OpenGLES.cpp b/support/hololens/ServoApp/ServoControl/OpenGLES.cpp index b8f56b629129..8889ee23d774 100644 --- a/support/hololens/ServoApp/ServoControl/OpenGLES.cpp +++ b/support/hololens/ServoApp/ServoControl/OpenGLES.cpp @@ -48,13 +48,10 @@ void OpenGLES::Initialize() { EGL_PLATFORM_ANGLE_TYPE_ANGLE, EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE, - // EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER is an optimization that - // can have large performance benefits on - // mobile devices. Its syntax is subject to change, though. Please update - // your Visual Studio templates if you - // experience compilation issues with it. - EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER, - EGL_TRUE, + // EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE is an optimization that + // can have large performance benefits on mobile devices. + EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE, + EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE, // EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE is an option that // enables ANGLE to automatically call @@ -79,8 +76,8 @@ void OpenGLES::Initialize() { 9, EGL_PLATFORM_ANGLE_MAX_VERSION_MINOR_ANGLE, 3, - EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER, - EGL_TRUE, + EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE, + EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE, EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE, EGL_TRUE, EGL_NONE, @@ -93,9 +90,9 @@ void OpenGLES::Initialize() { EGL_PLATFORM_ANGLE_TYPE_ANGLE, EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE, EGL_PLATFORM_ANGLE_DEVICE_TYPE_ANGLE, - EGL_PLATFORM_ANGLE_DEVICE_TYPE_WARP_ANGLE, - EGL_ANGLE_DISPLAY_ALLOW_RENDER_TO_BACK_BUFFER, - EGL_TRUE, + EGL_PLATFORM_ANGLE_DEVICE_TYPE_D3D_WARP_ANGLE, + EGL_EXPERIMENTAL_PRESENT_PATH_ANGLE, + EGL_EXPERIMENTAL_PRESENT_PATH_FAST_ANGLE, EGL_PLATFORM_ANGLE_ENABLE_AUTOMATIC_TRIM_ANGLE, EGL_TRUE, EGL_NONE, @@ -194,8 +191,7 @@ void OpenGLES::Reset() { EGLSurface OpenGLES::CreateSurface(SwapChainPanel const &panel, float dpi) { EGLSurface surface = EGL_NO_SURFACE; - const EGLint surfaceAttributes[] = {EGL_ANGLE_SURFACE_RENDER_TO_BACK_BUFFER, - EGL_TRUE, EGL_NONE}; + const EGLint surfaceAttributes[] = {EGL_NONE}; PropertySet surfaceCreationProperties; diff --git a/support/hololens/ServoApp/packages.config b/support/hololens/ServoApp/packages.config index 45b694219be3..e6ae208cc93e 100644 --- a/support/hololens/ServoApp/packages.config +++ b/support/hololens/ServoApp/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file