diff options
author | danakj <danakj@chromium.org> | 2014-11-17 13:47:49 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-17 21:48:17 +0000 |
commit | ad672f645e82ca677978b097a170c908c614d184 (patch) | |
tree | 567bb95eb11adaf7729cef22b691087c7c1bc374 /cc/layers/picture_layer.h | |
parent | 9f3e33daaac0f6c0835dd69ef57c89cb89e706f8 (diff) | |
download | chromium_src-ad672f645e82ca677978b097a170c908c614d184.zip chromium_src-ad672f645e82ca677978b097a170c908c614d184.tar.gz chromium_src-ad672f645e82ca677978b097a170c908c614d184.tar.bz2 |
cc: Toggle LCD text at raster time instead of record time.
Always tell blink that it can use LCD text (in future this can stop
being passed at all). And at raster time:
- If LCD text is allowed initialize SkSurfaceProps with the LegacyHost
parameter which will cause skia to pick an LCD text format matching
current behaviour.
- If LCD is not allowed initialize SkSurfaceProps with an "unknown
pixelformat" causing LCD text to not be used.
This also removes the need for SK_SUPPORT_LEGACY_TEXTRENDERMODE from
resource_provider.cc.
R=enne,reveman
BUG=430617
Review URL: https://codereview.chromium.org/684543006
Cr-Commit-Position: refs/heads/master@{#304486}
Diffstat (limited to 'cc/layers/picture_layer.h')
-rw-r--r-- | cc/layers/picture_layer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/layers/picture_layer.h b/cc/layers/picture_layer.h index ebd6427..4d84371 100644 --- a/cc/layers/picture_layer.h +++ b/cc/layers/picture_layer.h @@ -50,7 +50,7 @@ class CC_EXPORT PictureLayer : public Layer { ~PictureLayer() override; bool HasDrawableContent() const override; - void UpdateCanUseLCDText(); + bool UpdateCanUseLCDText(); private: ContentLayerClient* client_; @@ -64,7 +64,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); }; |