Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2371)

Unified Diff: cc/resources/content_layer_updater.cc

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better unittest Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(

Powered by Google App Engine
This is Rietveld 408576698