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

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: updated unittests 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
« no previous file with comments | « cc/layers/content_layer.cc ('k') | cc/layers/content_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
enne (OOO) 2014/06/06 16:59:32 Please don't change this. It should be up to the
alokp 2014/06/06 19:15:05 That is what this function is supposed to prevent.
alokp 2014/06/06 22:05:40 I realized that there is no test for this. I have
enne (OOO) 2014/06/06 22:20:59 Sure, but this also means that ui layers can no lo
alokp 2014/06/06 22:31:27 But if you actually paint LCD text and it is no lo
alokp 2014/06/10 17:18:59 piman: Do you see any issues with modifying this A
piman 2014/06/10 22:57:45 I can't tell for sure if that happens. What is tru
alokp 2014/06/10 23:33:47 AFAICT in the current world ui::Layer is never inv
// If true the layer may skip clearing the background before rasterizing,
// because it will cover any uncleared data with content.
« no previous file with comments | « cc/layers/content_layer.cc ('k') | cc/layers/content_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698