#pragma once #include "../../../../../base/src_point.hpp" #include #include namespace android { class ConfigComparator { public: ConfigComparator(EGLDisplay display); bool operator()(EGLConfig const & l, EGLConfig const & r) const; int configWeight(EGLConfig const & config) const; int configAlphaSize(EGLConfig const & config) const; private: EGLDisplay m_display; }; void CheckEGL(my::SrcPoint const & src); #define CHECK_EGL(x) do { (x); CheckEGL(SRC());} while(false); #define CHECK_EGL_CALL() do { CheckEGL(SRC());} while (false); } // namespace android