blob: 452fc8dd0cee6311fa8bcb28ec869a6bf6b5b048 [file]
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GL_ANGLE_PLATFORM_IMPL_H_
#define UI_GL_ANGLE_PLATFORM_IMPL_H_
// Implements the ANGLE platform interface, for functionality like
// histograms and worker tasks.
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_export.h"
typedef void* EGLDisplay;
namespace angle {
struct PlatformMethods;
GL_EXPORT bool InitializePlatform(EGLDisplay display,
GLGetProcAddressProc get_proc_address);
GL_EXPORT void ResetPlatform(EGLDisplay display,
GLGetProcAddressProc get_proc_address);
GL_EXPORT void ANGLEPlatformImpl_postWorkerTask(PlatformMethods* platform,
void (*callback)(void*),
void* user_data);
} // namespace angle
#endif // UI_GL_ANGLE_PLATFORM_IMPL_H_