gfx/layers/d3d9/ReadbackLayerD3D9.h
author Rafael Ávila de Espíndola <respindola@mozilla.com>
Fri, 05 Oct 2012 13:06:34 -0400
changeset 109427 d54999bfe1dd18ba5ca302dac6ca272d648fce79
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 133354 8fed67bc814d173ddba7083a1a6e6669456b7a2e
permissions -rw-r--r--
Bug 798429 - Add new talos test names. r=jhammel.

/* -*- Mode: C++; tab-width: 20; 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 GFX_READBACKLAYERD3D9_H
#define GFX_READBACKLAYERD3D9_H

#include "LayerManagerD3D9.h"
#include "ReadbackLayer.h"

namespace mozilla {
namespace layers {

class THEBES_API ReadbackLayerD3D9 :
  public ReadbackLayer,
  public LayerD3D9
{
public:
    ReadbackLayerD3D9(LayerManagerD3D9 *aManager)
    : ReadbackLayer(aManager, NULL),
      LayerD3D9(aManager)
  {
      mImplData = static_cast<LayerD3D9*>(this);
  }

  virtual Layer* GetLayer() { return this; }
  virtual void RenderLayer() {}
};

} /* layers */
} /* mozilla */
#endif /* GFX_READBACKLAYERD3D9_H */