#ifndef CC_LAYERS_SURFACE_LAYER_H_
#define CC_LAYERS_SURFACE_LAYER_H_
#include "cc/base/cc_export.h"
#include "cc/layers/layer.h"
namespace cc {
class CC_EXPORT SurfaceLayer : public Layer {
public:
static scoped_refptr<SurfaceLayer> Create();
void SetSurfaceId(int surface_id);
virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
OVERRIDE;
virtual bool DrawsContent() const OVERRIDE;
virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
protected:
SurfaceLayer();
private:
virtual ~SurfaceLayer();
int surface_id_;
DISALLOW_COPY_AND_ASSIGN(SurfaceLayer);
};
}
#endif