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

Unified Diff: cc/resources/picture_pile_impl.cc

Issue 684543006: cc: Toggle LCD text at raster time instead of record time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcdraster: . Created 6 years, 1 month 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/picture_pile_impl.cc
diff --git a/cc/resources/picture_pile_impl.cc b/cc/resources/picture_pile_impl.cc
index 7ec925212731938dfe0741999e244628226adc0d..ab211211b3f54d9bd6cb50c0846582939f76458b 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -29,6 +29,7 @@ PicturePileImpl::PicturePileImpl()
: background_color_(SK_ColorTRANSPARENT),
contents_opaque_(false),
contents_fill_bounds_completely_(false),
+ can_use_lcd_text_(false),
is_solid_color_(false),
solid_color_(SK_ColorTRANSPARENT),
has_any_recordings_(false),
@@ -45,6 +46,7 @@ PicturePileImpl::PicturePileImpl(const PicturePile* other)
background_color_(other->background_color_),
contents_opaque_(other->contents_opaque_),
contents_fill_bounds_completely_(other->contents_fill_bounds_completely_),
+ can_use_lcd_text_(other->can_use_lcd_text_),
is_solid_color_(other->is_solid_color_),
solid_color_(other->solid_color_),
recorded_viewport_(other->recorded_viewport_),
@@ -427,6 +429,10 @@ bool PicturePileImpl::IsMask() const {
return is_mask_;
}
+bool PicturePileImpl::CanUseLcdText() const {
+ return can_use_lcd_text_;
+}
+
PicturePileImpl::PixelRefIterator::PixelRefIterator(
const gfx::Rect& content_rect,
float contents_scale,

Powered by Google App Engine
This is Rietveld 408576698