blob: 8f40b86b26b868dba023c3193d728e89541fd7fc [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 {
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 CanvasContextCreationAttributes&,
unsigned webGLVersion);
} // namespace blink
#endif // WebGLContextAttributeHelpers_h