#ifndef CC_QUADS_SHARED_QUAD_STATE_H_
#define CC_QUADS_SHARED_QUAD_STATE_H_
#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/transform.h"
namespace base {
class Value;
}
namespace cc {
class CC_EXPORT SharedQuadState {
public:
static scoped_ptr<SharedQuadState> Create();
~SharedQuadState();
scoped_ptr<SharedQuadState> Copy() const;
void SetAll(const gfx::Transform& content_to_target_transform,
const gfx::Size& content_bounds,
const gfx::Rect& visible_content_rect,
const gfx::Rect& clip_rect,
bool is_clipped,
float opacity,
SkXfermode::Mode blend_mode);
scoped_ptr<base::Value> AsValue() const;
gfx::Transform content_to_target_transform;
gfx::Size content_bounds;
gfx::Rect visible_content_rect;
gfx::Rect clip_rect;
bool is_clipped;
float opacity;
SkXfermode::Mode blend_mode;
private:
SharedQuadState();
};
}
#endif