Hash :
45808a17
Author :
Date :
2015-08-07T13:05:12
Use WGL_ARB_pixel_format to choose the pixel format when available. BUG=angleproject:890 Change-Id: If10ea7e1cb670bb3cd6fdcf40344d1c1e0acd862 Reviewed-on: https://chromium-review.googlesource.com/291650 Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>
//
// Copyright (c) 2015 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.
//
// wgl_utils.h: Utility routines specific to the WGL->EGL implementation.
#ifndef LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_
#define LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_
#include <vector>
#include "common/platform.h"
namespace rx
{
class FunctionsWGL;
namespace wgl
{
PIXELFORMATDESCRIPTOR GetDefaultPixelFormatDescriptor();
std::vector<int> GetDefaultPixelFormatAttributes(bool preservedSwap);
int QueryWGLFormatAttrib(HDC dc, int format, int attribName, const FunctionsWGL *functions);
}
}
#endif // LIBANGLE_RENDERER_GL_WGL_WGLUTILS_H_