2020-01-09 01:19:14 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef WEBGLCHILD_H_
|
|
|
|
#define WEBGLCHILD_H_
|
|
|
|
|
2020-01-09 01:19:16 +03:00
|
|
|
#include <string>
|
|
|
|
|
2020-01-09 01:19:14 +03:00
|
|
|
#include "mozilla/dom/PWebGLChild.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
class ClientWebGLContext;
|
|
|
|
|
|
|
|
namespace dom {
|
|
|
|
|
2020-01-09 01:19:16 +03:00
|
|
|
class WebGLChild final : public PWebGLChild {
|
2020-01-09 01:19:14 +03:00
|
|
|
public:
|
2020-01-09 01:19:16 +03:00
|
|
|
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(WebGLChild, override);
|
|
|
|
|
|
|
|
ClientWebGLContext& mContext;
|
2020-01-09 01:19:14 +03:00
|
|
|
|
2020-01-09 01:19:16 +03:00
|
|
|
explicit WebGLChild(ClientWebGLContext&);
|
2020-01-09 01:19:14 +03:00
|
|
|
|
2020-01-09 01:19:16 +03:00
|
|
|
private:
|
|
|
|
virtual ~WebGLChild();
|
|
|
|
|
|
|
|
public:
|
|
|
|
mozilla::ipc::IPCResult RecvJsWarning(const std::string&) const;
|
|
|
|
mozilla::ipc::IPCResult RecvOnContextLoss(webgl::ContextLossReason) const;
|
2020-01-09 01:19:14 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // WEBGLCHILD_H_
|