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

Unified Diff: cc/layers/content_layer_client.h

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better unittest Created 6 years, 6 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_client.h
diff --git a/cc/layers/content_layer_client.h b/cc/layers/content_layer_client.h
index 8271cd5e27f1711d2e2e7ba8ee38c2b39d82c7ea..14c276e850a749669986f11a0775f175d7805fcd 100644
--- a/cc/layers/content_layer_client.h
+++ b/cc/layers/content_layer_client.h
@@ -25,12 +25,13 @@ class CC_EXPORT ContentLayerClient {
virtual void PaintContents(SkCanvas* canvas,
const gfx::Rect& clip,
+ bool can_paint_lcd_text,
gfx::RectF* opaque,
GraphicsContextStatus gc_status) = 0;
- // Called by the content layer during the update phase.
- // If the client paints LCD text, it may want to invalidate the layer.
- virtual void DidChangeLayerCanUseLCDText() = 0;
+ // If true the layer may need to invalidate itself when LCD text status
+ // changes.
+ virtual bool PaintsLCDText() const = 0;
// If true the layer may skip clearing the background before rasterizing,
// because it will cover any uncleared data with content.

Powered by Google App Engine
This is Rietveld 408576698