X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fui%2Fgl%2Fgl_surface.cc;h=92b2b45ce234cf700007f3276b1d12c54556c735;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=4e74f49edd68ca15db7fa654e8587e97aa8b1a29;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/ui/gl/gl_surface.cc b/src/ui/gl/gl_surface.cc index 4e74f49..92b2b45 100644 --- a/src/ui/gl/gl_surface.cc +++ b/src/ui/gl/gl_surface.cc @@ -42,7 +42,9 @@ bool GLSurface::InitializeOneOff() { // The default implementation is always the first one in list. GLImplementation impl = allowed_impls[0]; bool fallback_to_osmesa = false; - if (cmd->HasSwitch(switches::kUseGL)) { + if (cmd->HasSwitch(switches::kOverrideUseGLWithOSMesaForTests)) { + impl = kGLImplementationOSMesaGL; + } else if (cmd->HasSwitch(switches::kUseGL)) { std::string requested_implementation_name = cmd->GetSwitchValueASCII(switches::kUseGL); if (requested_implementation_name == "any") {