blob: 99aa0c2f41c5a27ff77df08f9d1abd07f83aa9f2 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WebGLContextAttributeHelpers_h
#define WebGLContextAttributeHelpers_h
#include "core/html/canvas/CanvasContextCreationAttributes.h"
#include "modules/webgl/WebGLContextAttributes.h"
#include "public/platform/Platform.h"
namespace blink {
class Settings;
WebGLContextAttributes toWebGLContextAttributes(const CanvasContextCreationAttributes&);
// Set up the attributes that can be used to create a GL context via the
// Platform API.
Platform::ContextAttributes toPlatformContextAttributes(const WebGLContextAttributes&, unsigned webGLVersion);
} // namespace blink
#endif // WebGLContextAttributeHelpers_h