#ifndef CC_TEST_SOLID_COLOR_CONTENT_LAYER_CLIENT_H_
#define CC_TEST_SOLID_COLOR_CONTENT_LAYER_CLIENT_H_
#include "base/compiler_specific.h"
#include "cc/layers/content_layer_client.h"
#include "third_party/skia/include/core/SkColor.h"
namespace cc {
class SolidColorContentLayerClient : public ContentLayerClient {
public:
explicit SolidColorContentLayerClient(SkColor color) : color_(color) {}
virtual void DidChangeLayerCanUseLCDText() OVERRIDE {}
virtual void PaintContents(SkCanvas* canvas,
const gfx::Rect& rect,
gfx::RectF* opaque_rect) OVERRIDE;
virtual bool FillsBoundsCompletely() const OVERRIDE;
private:
SkColor color_;
};
}
#endif