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

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: header 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 7514e075ab823136351c25ce68f41cf709c1b330..58a90ec5d5bb4c0269f2f82db33e53c5db8ccb80 100644
--- a/cc/resources/picture_pile_impl.cc
+++ b/cc/resources/picture_pile_impl.cc
@@ -33,6 +33,7 @@ PicturePileImpl::PicturePileImpl()
solid_color_(SK_ColorTRANSPARENT),
has_any_recordings_(false),
is_mask_(false),
+ can_use_lcd_text_(false),
clear_canvas_with_debug_color_(false),
min_contents_scale_(0.f),
slow_down_raster_scale_factor_for_debug_(0),
@@ -50,6 +51,7 @@ PicturePileImpl::PicturePileImpl(const PicturePileBase* other)
recorded_viewport_(other->recorded_viewport_),
has_any_recordings_(other->has_any_recordings_),
is_mask_(other->is_mask_),
+ can_use_lcd_text_(other->can_use_lcd_text_),
clear_canvas_with_debug_color_(other->clear_canvas_with_debug_color_),
min_contents_scale_(other->min_contents_scale_),
slow_down_raster_scale_factor_for_debug_(
@@ -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