| Index: cc/layers/tiled_layer_unittest.cc
|
| diff --git a/cc/layers/tiled_layer_unittest.cc b/cc/layers/tiled_layer_unittest.cc
|
| index bc83743b7040521e3a28d161c965263485941925..37e277ec7bc74884e2e4869c71dbd4a3e92de1a9 100644
|
| --- a/cc/layers/tiled_layer_unittest.cc
|
| +++ b/cc/layers/tiled_layer_unittest.cc
|
| @@ -9,7 +9,7 @@
|
|
|
| #include "base/run_loop.h"
|
| #include "cc/resources/bitmap_content_layer_updater.h"
|
| -#include "cc/resources/layer_painter.h"
|
| +#include "cc/resources/content_layer_painter.h"
|
| #include "cc/resources/prioritized_resource_manager.h"
|
| #include "cc/resources/resource_update_controller.h"
|
| #include "cc/test/animation_test_common.h"
|
| @@ -1704,14 +1704,15 @@ TEST_F(TiledLayerTest, DontAllocateContentsWhenTargetSurfaceCantBeAllocated) {
|
| layer_tree_host_->SetRootLayer(NULL);
|
| }
|
|
|
| -class TrackingLayerPainter : public LayerPainter {
|
| +class TrackingLayerPainter : public ContentLayerPainter {
|
| public:
|
| - static scoped_ptr<TrackingLayerPainter> Create() {
|
| - return make_scoped_ptr(new TrackingLayerPainter());
|
| + static scoped_ptr<TrackingLayerPainter> Create(ContentLayerClient* client) {
|
| + return make_scoped_ptr(new TrackingLayerPainter(client));
|
| }
|
|
|
| virtual void Paint(SkCanvas* canvas,
|
| const gfx::Rect& content_rect,
|
| + bool can_paint_lcd_text,
|
| gfx::RectF* opaque) OVERRIDE {
|
| painted_rect_ = content_rect;
|
| }
|
| @@ -1719,6 +1720,10 @@ class TrackingLayerPainter : public LayerPainter {
|
| gfx::Rect PaintedRect() const { return painted_rect_; }
|
| void ResetPaintedRect() { painted_rect_ = gfx::Rect(); }
|
|
|
| + protected:
|
| + explicit TrackingLayerPainter(ContentLayerClient* client)
|
| + : ContentLayerPainter(client) {}
|
| +
|
| private:
|
| gfx::Rect painted_rect_;
|
| };
|
| @@ -1727,12 +1732,11 @@ class UpdateTrackingTiledLayer : public FakeTiledLayer {
|
| public:
|
| explicit UpdateTrackingTiledLayer(PrioritizedResourceManager* manager)
|
| : FakeTiledLayer(manager) {
|
| - scoped_ptr<TrackingLayerPainter> painter(TrackingLayerPainter::Create());
|
| + scoped_ptr<TrackingLayerPainter> painter(
|
| + TrackingLayerPainter::Create(NULL));
|
| tracking_layer_painter_ = painter.get();
|
| - layer_updater_ =
|
| - BitmapContentLayerUpdater::Create(painter.PassAs<LayerPainter>(),
|
| - &stats_instrumentation_,
|
| - 0);
|
| + layer_updater_ = BitmapContentLayerUpdater::Create(
|
| + painter.PassAs<ContentLayerPainter>(), &stats_instrumentation_, 0);
|
| }
|
|
|
| TrackingLayerPainter* tracking_layer_painter() const {
|
|
|