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

Unified Diff: cc/layers/picture_layer.h

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/layers/picture_layer.h
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h
index 3da9668c107b9812e28d4ab68f4da4818313b32a..57d56b498355eb6cfc6bf4d045b6850c01acddb5 100644
--- a/cc/layers/picture_layer.h
+++ b/cc/layers/picture_layer.h
@@ -51,6 +51,12 @@ class CC_EXPORT PictureLayer : public Layer {
void UpdateCanUseLCDText();
private:
+ enum LcdTextState {
+ LCD_TEXT_STATE_UNKNOWN,
+ LCD_TEXT_STATE_ALLOWED,
+ LCD_TEXT_STATE_DISALLOWED,
+ };
+
ContentLayerClient* client_;
scoped_ptr<RecordingSource> recording_source_;
devtools_instrumentation::
@@ -62,7 +68,7 @@ class CC_EXPORT PictureLayer : public Layer {
gfx::Rect last_updated_visible_content_rect_;
int update_source_frame_number_;
- bool can_use_lcd_text_last_frame_;
+ bool can_use_lcd_text_for_update_;
DISALLOW_COPY_AND_ASSIGN(PictureLayer);
};

Powered by Google App Engine
This is Rietveld 408576698