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

Unified Diff: cc/layers/content_layer.h

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/layers/content_layer.h
diff --git a/cc/layers/content_layer.h b/cc/layers/content_layer.h
index fe0bd37970f4323f51f8043a5e475e07456db496..16790b8a02c3200b6256c8b47d469e617e13853b 100644
--- a/cc/layers/content_layer.h
+++ b/cc/layers/content_layer.h
@@ -21,7 +21,10 @@ class CC_EXPORT ContentLayerPainter : public LayerPainter {
public:
static scoped_ptr<ContentLayerPainter> Create(ContentLayerClient* client);
- void Paint(SkCanvas* canvas, const gfx::Rect& content_rect) override;
+ void Paint(SkCanvas* canvas,
+ const gfx::Rect& content_rect,
+ bool can_use_lcd_text,
+ bool contents_opaque) override;
private:
explicit ContentLayerPainter(ContentLayerClient* client);
@@ -70,6 +73,7 @@ class CC_EXPORT ContentLayer : public TiledLayer {
ContentLayerClient* client_;
scoped_refptr<ContentLayerUpdater> updater_;
bool can_use_lcd_text_last_frame_;
+ bool first_update_lcd_text_occured_;
DISALLOW_COPY_AND_ASSIGN(ContentLayer);
};

Powered by Google App Engine
This is Rietveld 408576698