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

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: initvar 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 741653854c2a83d20a2c7ce64b6037c8be9f0270..2655d24bb7c034104e04b38705d8ff1b9bbef5ce 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -38,6 +38,7 @@ scoped_refptr<PicturePileImpl> PicturePileImpl::CreateFromPicturePile(
PicturePileImpl::PicturePileImpl()
: background_color_(SK_ColorTRANSPARENT),
requires_clear_(true),
+ can_use_lcd_text_(false),
is_solid_color_(false),
solid_color_(SK_ColorTRANSPARENT),
has_any_recordings_(false),
@@ -52,6 +53,7 @@ PicturePileImpl::PicturePileImpl(const PicturePile* other)
tiling_(other->tiling_),
background_color_(SK_ColorTRANSPARENT),
requires_clear_(true),
+ 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_),
@@ -437,6 +439,10 @@ void PicturePileImpl::AsValueInto(base::debug::TracedValue* pictures) const {
}
}
+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