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

Unified Diff: cc/resources/content_layer_updater.cc

Issue 684653004: Plumb can_use_lcd_text, contents_opaque directly to ContentLayerClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 971362fb8b8c8a9e144e16728f8429c671b0af9c..64793cf76a8e35606ca497eae33510de9cd116c9 100644
--- a/cc/resources/content_layer_updater.cc
+++ b/cc/resources/content_layer_updater.cc
@@ -106,7 +106,8 @@ void ContentLayerUpdater::PaintContents(SkCanvas* canvas,
canvas->drawColor(SK_ColorTRANSPARENT, SkXfermode::kSrc_Mode);
}
- painter_->Paint(canvas, layer_rect);
+ painter_->Paint(
+ canvas, layer_rect, layer_can_use_lcd_text_, layer_is_opaque_);
canvas->restore();
paint_rect_ = paint_rect;
@@ -116,6 +117,10 @@ void ContentLayerUpdater::SetOpaque(bool opaque) {
layer_is_opaque_ = opaque;
}
+void ContentLayerUpdater::SetCanUseLCDText(bool can_use_lcd_text) {
+ layer_can_use_lcd_text_ = can_use_lcd_text;
+}
+
void ContentLayerUpdater::SetFillsBoundsCompletely(bool fills_bounds) {
layer_fills_bounds_completely_ = fills_bounds;
}

Powered by Google App Engine
This is Rietveld 408576698