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

Issue 684653004: Plumb can_use_lcd_text, contents_opaque directly to ContentLayerClient. (Closed)

Created:
6 years, 1 month ago by danakj
Modified:
6 years ago
Reviewers:
enne (OOO), reed1
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, fmalita_google_do_not_use, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, sievers+watch_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Plumb can_use_lcd_text, contents_opaque directly to ContentLayerClient. Currently can_use_lcd_text is inserted into the WebContentLayerClient by the WebContentLayerImpl in its ContentLayerClient implementation. And contents_opaque is plumbed to CC but then not passed to painting and instead plumbed independently inside blink to a single painting place to use it. Unify this plumbing so it all comes through the paintContents() method in the WebContentLayerClient directly from the cc Layer state. BUG=

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -91 lines) Patch
M cc/blink/web_content_layer_impl.h View 2 chunks +2 lines, -4 lines 0 comments Download
M cc/blink/web_content_layer_impl.cc View 3 chunks +5 lines, -18 lines 0 comments Download
M cc/debug/picture_record_benchmark.cc View 2 chunks +11 lines, -2 lines 0 comments Download
M cc/debug/rasterize_and_record_benchmark.cc View 2 chunks +10 lines, -2 lines 0 comments Download
M cc/layers/content_layer.h View 2 chunks +5 lines, -1 line 0 comments Download
M cc/layers/content_layer.cc View 4 chunks +19 lines, -6 lines 2 comments Download
M cc/layers/content_layer_client.h View 1 chunk +2 lines, -4 lines 0 comments Download
M cc/layers/layer_unittest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/picture_image_layer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/layers/picture_layer.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/picture_layer.cc View 4 chunks +14 lines, -5 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 3 chunks +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/tiled_layer_unittest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M cc/resources/content_layer_updater.h View 2 chunks +2 lines, -0 lines 0 comments Download
M cc/resources/content_layer_updater.cc View 2 chunks +6 lines, -1 line 0 comments Download
M cc/resources/layer_painter.h View 1 chunk +4 lines, -1 line 0 comments Download
M cc/resources/layer_updater.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture.h View 2 chunks +4 lines, -0 lines 0 comments Download
M cc/resources/picture.cc View 3 chunks +14 lines, -2 lines 0 comments Download
M cc/resources/picture_pile.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture_pile.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/resources/picture_pile_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/picture_unittest.cc View 9 chunks +18 lines, -0 lines 0 comments Download
M cc/test/fake_content_layer_client.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/fake_content_layer_client.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/test/fake_picture_pile_impl.cc View 1 chunk +10 lines, -2 lines 0 comments Download
M cc/test/solid_color_content_layer_client.h View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/solid_color_content_layer_client.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_pixeltest_masks.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 5 chunks +37 lines, -31 lines 0 comments Download
M ui/compositor/layer.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/layer.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
enne (OOO)
+reed I'm not sure this is the right thing to do. I got the impression ...
6 years, 1 month ago (2014-11-05 00:51:09 UTC) #2
reed1
+florin I think this is great. The new feature in SkSurface/SkSurfaceProps is to enable the ...
6 years, 1 month ago (2014-11-05 19:28:10 UTC) #4
danakj
On 2014/11/05 19:28:10, reed1 wrote: > +florin > > I think this is great. The ...
6 years, 1 month ago (2014-11-05 19:58:24 UTC) #5
danakj
On 2014/11/05 19:58:24, danakj wrote: > On 2014/11/05 19:28:10, reed1 wrote: > > +florin > ...
6 years, 1 month ago (2014-11-05 20:16:01 UTC) #6
danakj
On 2014/11/05 20:16:01, danakj wrote: > On 2014/11/05 19:58:24, danakj wrote: > > On 2014/11/05 ...
6 years, 1 month ago (2014-11-05 20:34:50 UTC) #7
f(malita)
On 2014/11/05 20:34:50, danakj wrote: > Ok I dug some more, it seems like I'd ...
6 years, 1 month ago (2014-11-05 20:55:33 UTC) #8
bungeman-skia
On 2014/11/05 20:55:33, Florin Malita wrote: > On 2014/11/05 20:34:50, danakj wrote: > > Ok ...
6 years, 1 month ago (2014-11-05 22:07:58 UTC) #9
f(malita)
On 2014/11/05 22:07:58, bungeman1 wrote: > On 2014/11/05 20:55:33, Florin Malita wrote: > > On ...
6 years, 1 month ago (2014-11-05 22:34:58 UTC) #10
reed1
On 2014/11/05 22:34:58, Florin Malita wrote: > On 2014/11/05 22:07:58, bungeman1 wrote: > > On ...
6 years, 1 month ago (2014-11-05 23:54:07 UTC) #11
reed1
On 2014/11/05 23:54:07, reed1 wrote: > On 2014/11/05 22:34:58, Florin Malita wrote: > > On ...
6 years, 1 month ago (2014-11-05 23:54:33 UTC) #12
danakj
On Wed, Nov 5, 2014 at 6:54 PM, <reed@google.com> wrote: > We already set the ...
6 years, 1 month ago (2014-11-06 15:14:18 UTC) #13
chromium-reviews
Blink should just set LCD when they want it. The surfaceprops will disable during raster ...
6 years, 1 month ago (2014-11-06 17:26:52 UTC) #14
danakj
On Thu, Nov 6, 2014 at 12:26 PM, Mike Reed <reed@google.com> wrote: > Blink should ...
6 years, 1 month ago (2014-11-06 17:30:45 UTC) #15
enne (OOO)
https://codereview.chromium.org/684653004/diff/1/cc/layers/content_layer.cc File cc/layers/content_layer.cc (left): https://codereview.chromium.org/684653004/diff/1/cc/layers/content_layer.cc#oldcode135 cc/layers/content_layer.cc:135: client_->DidChangeLayerCanUseLCDText(); I don't think this can go. The reason ...
6 years, 1 month ago (2014-11-12 18:51:05 UTC) #16
danakj
6 years, 1 month ago (2014-11-12 18:52:48 UTC) #17
https://codereview.chromium.org/684653004/diff/1/cc/layers/content_layer.cc
File cc/layers/content_layer.cc (left):

https://codereview.chromium.org/684653004/diff/1/cc/layers/content_layer.cc#o...
cc/layers/content_layer.cc:135: client_->DidChangeLayerCanUseLCDText();
On 2014/11/12 18:51:05, enne wrote:
> I don't think this can go.  The reason this was implemented in
> WebContentLayerImpl and not inside of this function is because Blink wanted
> invalidations and ui::Layer did not.  ui::Layer never wants invalidations when
> lcd changes.

Ah okay, makes sense now that I saw the ui::Layer differences. Thanks.

Powered by Google App Engine
This is Rietveld 408576698