blob: 789b18c5a9b3670baf6d821fb2060b5a5ddc5fd6 [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/CanvasContextCreationAttributesCore.h"
#include "modules/webgl/WebGLContextAttributes.h"
#include "public/platform/Platform.h"
namespace blink {
WebGLContextAttributes ToWebGLContextAttributes(
const CanvasContextCreationAttributesCore&);
// Set up the attributes that can be used to create a GL context via the
// Platform API.
Platform::ContextAttributes ToPlatformContextAttributes(
const CanvasContextCreationAttributesCore&,
unsigned web_gl_version,
bool support_own_offscreen_surface);
} // namespace blink
#endif // WebGLContextAttributeHelpers_h