Commit 60570b85 by Tim Van Patten Committed by Commit Bot

Update emulated_prerotation_ to emulatedPrerotation

The feature names were recently updated to match their member variables, however a few instances of "emulated_prerotation_" were missed, which breaks using the --emulated-pre-rotation flag for dEQP tests. Bug: b/172704839 Change-Id: I6af5cd866bff0752964e193132280f5e8fcf1528 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2536902Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent 8d3f6c90
......@@ -432,15 +432,15 @@ ANGLENativeDisplayFactory::ANGLENativeDisplayFactory(
reinterpret_cast<const char **>(mPlatformAttributes[attrIndex + 1]);
DE_ASSERT(preRotationFeatures != nullptr && preRotationFeatures[0] != nullptr);
if (strcmp(preRotationFeatures[0], "emulated_prerotation_90") == 0)
if (strcmp(preRotationFeatures[0], "emulatedPrerotation90") == 0)
{
preRotation = 90;
}
else if (strcmp(preRotationFeatures[0], "emulated_prerotation_180") == 0)
else if (strcmp(preRotationFeatures[0], "emulatedPrerotation180") == 0)
{
preRotation = 180;
}
else if (strcmp(preRotationFeatures[0], "emulated_prerotation_270") == 0)
else if (strcmp(preRotationFeatures[0], "emulatedPrerotation270") == 0)
{
preRotation = 270;
}
......
......@@ -42,13 +42,13 @@ ANGLEPlatform::ANGLEPlatform(angle::LogErrorFunc logErrorFunc, uint32_t preRotat
switch (preRotation)
{
case 90:
mEnableFeatureOverrides.push_back("emulated_prerotation_90");
mEnableFeatureOverrides.push_back("emulatedPrerotation90");
break;
case 180:
mEnableFeatureOverrides.push_back("emulated_prerotation_180");
mEnableFeatureOverrides.push_back("emulatedPrerotation180");
break;
case 270:
mEnableFeatureOverrides.push_back("emulated_prerotation_270");
mEnableFeatureOverrides.push_back("emulatedPrerotation270");
break;
default:
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment