Attempt to fix AMD ANGLE bots.

Makes the second context used for image tests be of the same type as it was before https://skia.googlesource.com/skia/+/6405e71279e99731f89db69325c6763ec62a98e1

Change-Id: Id861214e5bea2b874ba5eae4489a982340c2f101
Reviewed-on: https://skia-review.googlesource.com/9912
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
This commit is contained in:
Brian Salomon 2017-03-20 17:08:43 -04:00 committed by Skia Commit-Bot
parent bbb24f2ab8
commit 107524c2a2

View File

@ -445,11 +445,11 @@ DEF_GPUTEST_FOR_RENDERING_CONTEXTS(c, reporter, ctxInfo) {
GrContextFactory::ContextType pick_second_context_type(const sk_gpu_test::ContextInfo& info) {
switch (info.backend()) {
case kOpenGL_GrBackend:
if (info.glContext()->gl()->fStandard == kGLES_GrGLStandard) {
return GrContextFactory::kGLES_ContextType;
} else {
#if defined(SK_BUILD_FOR_WIN) || defined(SK_BUILD_FOR_UNIX) || defined (SK_BUILD_FOR_MAC)
return GrContextFactory::kGL_ContextType;
}
#else
return GrContextFactory::kGLES_ContextType;
#endif
case kVulkan_GrBackend:
return GrContextFactory::kVulkan_ContextType;
}