#ifndef CC_RESOURCES_PICTURE_PILE_H_
#define CC_RESOURCES_PICTURE_PILE_H_
#include "cc/resources/picture_pile_base.h"
#include "ui/gfx/rect.h"
namespace cc {
class PicturePileImpl;
class Region;
class RenderingStatsInstrumentation;
class CC_EXPORT PicturePile : public PicturePileBase {
public:
PicturePile();
bool Update(ContentLayerClient* painter,
SkColor background_color,
bool contents_opaque,
bool contents_fill_bounds_completely,
const Region& invalidation,
const gfx::Rect& visible_layer_rect,
int frame_number,
RenderingStatsInstrumentation* stats_instrumentation);
void set_slow_down_raster_scale_factor(int factor) {
slow_down_raster_scale_factor_for_debug_ = factor;
}
void set_show_debug_picture_borders(bool show) {
show_debug_picture_borders_ = show;
}
protected:
virtual ~PicturePile();
private:
friend class PicturePileImpl;
DISALLOW_COPY_AND_ASSIGN(PicturePile);
};
}
#endif