gfx/ipc/GPUChild.h
author Wes Kocher <wkocher@mozilla.com>
Fri, 24 Jun 2016 14:43:41 -0700
changeset 342662 c6bb3db5e1b837a3caa622d673bdc326b171e566
parent 342659 b9a0567cd7c1161a8fd4ec075ec9f9883552d802
child 342740 cb97f090f9d42cabffef9812f33da36b316ff88d
permissions -rw-r--r--
Backed out 4 changesets (bug 1280822) for leaking nsTArray_base Backed out changeset b9a0567cd7c1 (bug 1280822) Backed out changeset 93d483583ffa (bug 1280822) Backed out changeset 91715d8e468f (bug 1280822) Backed out changeset 3db77f57cef4 (bug 1280822)

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=99: */
/* 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 _include_mozilla_gfx_ipc_GPUChild_h_
#define _include_mozilla_gfx_ipc_GPUChild_h_

#include "mozilla/gfx/PGPUChild.h"
#include "mozilla/UniquePtr.h"

namespace mozilla {
namespace gfx {

class GPUProcessHost;

class GPUChild final : public PGPUChild
{
public:
  explicit GPUChild(GPUProcessHost* aHost);
  ~GPUChild();

  static void Destroy(UniquePtr<GPUChild>&& aChild);

  void ActorDestroy(ActorDestroyReason aWhy) override;

private:
  GPUProcessHost* mHost;
};

} // namespace gfx
} // namespace mozilla

#endif // _include_mozilla_gfx_ipc_GPUChild_h_