Index: cc/resources/content_layer_updater.cc |
diff --git a/cc/resources/content_layer_updater.cc b/cc/resources/content_layer_updater.cc |
index 249a6e92cd8abba17eb855fb9cf62ec8425c171f..98f3847981c4b8858bc722a9f2fc4562c974d2e5 100644 |
--- a/cc/resources/content_layer_updater.cc |
+++ b/cc/resources/content_layer_updater.cc |
@@ -7,7 +7,7 @@ |
#include "base/debug/trace_event.h" |
#include "base/time/time.h" |
#include "cc/debug/rendering_stats_instrumentation.h" |
-#include "cc/resources/layer_painter.h" |
+#include "cc/resources/content_layer_painter.h" |
#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/core/SkPaint.h" |
#include "third_party/skia/include/core/SkRect.h" |
@@ -18,14 +18,16 @@ |
namespace cc { |
ContentLayerUpdater::ContentLayerUpdater( |
- scoped_ptr<LayerPainter> painter, |
+ scoped_ptr<ContentLayerPainter> painter, |
RenderingStatsInstrumentation* stats_instrumentation, |
int layer_id) |
: rendering_stats_instrumentation_(stats_instrumentation), |
layer_id_(layer_id), |
layer_is_opaque_(false), |
layer_fills_bounds_completely_(false), |
- painter_(painter.Pass()) {} |
+ painter_(painter.Pass()), |
+ can_use_lcd_text_(false) { |
+} |
ContentLayerUpdater::~ContentLayerUpdater() {} |
@@ -72,7 +74,7 @@ void ContentLayerUpdater::PaintContents(SkCanvas* canvas, |
} |
gfx::RectF opaque_layer_rect; |
- painter_->Paint(canvas, layer_rect, &opaque_layer_rect); |
+ painter_->Paint(canvas, layer_rect, can_use_lcd_text_, &opaque_layer_rect); |
canvas->restore(); |
gfx::Rect opaque_content_rect = gfx::ToEnclosedRect(gfx::ScaleRect( |