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

Unified Diff: cc/resources/content_layer_updater.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/resources/content_layer_updater.h
diff --git a/cc/resources/content_layer_updater.h b/cc/resources/content_layer_updater.h
index 7dfcb6a794fc4360403fb0fa65e53ce8338a1c2a..a5ba21dc5d800bdf7644b23c88f7a8d66dd7ef67 100644
--- a/cc/resources/content_layer_updater.h
+++ b/cc/resources/content_layer_updater.h
@@ -13,7 +13,7 @@ class SkCanvas;
namespace cc {
-class LayerPainter;
+class ContentLayerPainter;
class RenderingStatsInstrumentation;
// Base class for BitmapContentLayerUpdater and
@@ -24,9 +24,10 @@ class CC_EXPORT ContentLayerUpdater : public LayerUpdater {
void set_rendering_stats_instrumentation(RenderingStatsInstrumentation* rsi);
virtual void SetOpaque(bool opaque) OVERRIDE;
virtual void SetFillsBoundsCompletely(bool fills_bounds) OVERRIDE;
+ void set_can_use_lcd_text(bool can_use) { can_use_lcd_text_ = can_use; }
protected:
- ContentLayerUpdater(scoped_ptr<LayerPainter> painter,
+ ContentLayerUpdater(scoped_ptr<ContentLayerPainter> painter,
RenderingStatsInstrumentation* stats_instrumentation,
int layer_id);
virtual ~ContentLayerUpdater();
@@ -53,7 +54,8 @@ class CC_EXPORT ContentLayerUpdater : public LayerUpdater {
private:
gfx::Rect content_rect_;
- scoped_ptr<LayerPainter> painter_;
+ scoped_ptr<ContentLayerPainter> painter_;
+ bool can_use_lcd_text_;
DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater);
};

Powered by Google App Engine
This is Rietveld 408576698