Hash :
fce1e2d1
Author :
Date :
2019-06-04T15:02:08
Extend eglGetPlatformDisplay to allow feature overrides. Add EGL_FEATURE_OVERRIDES_ENABLED_ANGLE and EGL_FEATURE_OVERRIDES_DISABLED_ANGLE to submit lists of strings naming the features that should be overridden (either enabled or disabled) on display creation. Bug: angleproject:1621 Change-Id: I4bb75c5dbab0e3b701a72069c38f8c60ecfffad2 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1646595 Commit-Queue: Jonah Ryan-Davis <jonahr@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
//
// 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.
//
#include "libANGLE/renderer/gl/egl/RendererEGL.h"
#include "libANGLE/renderer/gl/egl/DisplayEGL.h"
namespace rx
{
RendererEGL::RendererEGL(std::unique_ptr<FunctionsGL> functionsGL,
const egl::AttributeMap &attribMap,
DisplayEGL *display,
EGLContext context,
const native_egl::AttributeVector attribs)
: RendererGL(std::move(functionsGL), attribMap, display),
mDisplay(display),
mContext(context),
mAttribs(attribs)
{}
RendererEGL::~RendererEGL()
{
mDisplay->destroyNativeContext(mContext);
mContext = nullptr;
}
EGLContext RendererEGL::getContext() const
{
return mContext;
}
WorkerContext *RendererEGL::createWorkerContext(std::string *infoLog)
{
return mDisplay->createWorkerContext(infoLog, mContext, mAttribs);
}
} // namespace rx