2010-07-21 21:17:33 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
* vim: sw=2 ts=8 et :
|
|
|
|
*/
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2010-07-21 21:17:33 +00:00
|
|
|
|
|
|
|
#ifndef mozilla_layers_ShadowLayersChild_h
|
|
|
|
#define mozilla_layers_ShadowLayersChild_h
|
|
|
|
|
|
|
|
#include "mozilla/layers/PLayersChild.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace layers {
|
|
|
|
|
|
|
|
class ShadowLayersChild : public PLayersChild
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ShadowLayersChild() { }
|
|
|
|
~ShadowLayersChild() { }
|
|
|
|
|
2010-08-20 23:24:41 +00:00
|
|
|
/**
|
|
|
|
* Clean this up, finishing with Send__delete__().
|
|
|
|
*
|
|
|
|
* It is expected (checked with an assert) that all shadow layers
|
|
|
|
* created by this have already been destroyed and
|
|
|
|
* Send__delete__()d by the time this method is called.
|
|
|
|
*/
|
|
|
|
void Destroy();
|
2010-07-21 21:17:33 +00:00
|
|
|
|
2010-08-20 23:24:41 +00:00
|
|
|
protected:
|
2012-07-12 12:51:58 +00:00
|
|
|
virtual PGrallocBufferChild*
|
|
|
|
AllocPGrallocBuffer(const gfxIntSize&, const gfxContentType&,
|
|
|
|
MaybeMagicGrallocBufferHandle*) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
|
|
DeallocPGrallocBuffer(PGrallocBufferChild* actor) MOZ_OVERRIDE;
|
|
|
|
virtual PLayerChild* AllocPLayer() MOZ_OVERRIDE;
|
|
|
|
virtual bool DeallocPLayer(PLayerChild* actor) MOZ_OVERRIDE;
|
2010-07-21 21:17:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace layers
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // ifndef mozilla_layers_ShadowLayersChild_h
|