#ifndef CC_LAYERS_QUAD_SINK_H_
#define CC_LAYERS_QUAD_SINK_H_
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
namespace gfx {
class Rect;
class Transform;
}
namespace cc {
class DrawQuad;
class LayerImpl;
class SharedQuadState;
class CC_EXPORT QuadSink {
public:
virtual ~QuadSink() {}
virtual SharedQuadState* UseSharedQuadState(
scoped_ptr<SharedQuadState> shared_quad_state) = 0;
virtual gfx::Rect UnoccludedContentRect(
const gfx::Rect& content_rect,
const gfx::Transform& draw_transform) = 0;
virtual gfx::Rect UnoccludedContributingSurfaceContentRect(
const gfx::Rect& content_rect,
const gfx::Transform& draw_transform) = 0;
virtual bool MaybeAppend(scoped_ptr<DrawQuad> draw_quad) = 0;
virtual void Append(scoped_ptr<DrawQuad> draw_quad) = 0;
};
}
#endif