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

Issue 266743003: Add flag to enable rendering of text using signed distance fields. (Closed)

Created:
6 years, 7 months ago by jvanverth1
Modified:
6 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, Ian Vollick, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org, reveman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add flag to enable rendering of text using signed distance fields. This change plumbs through a flag that turns on distance field text in Skia when doing GPU rasterization, as requested by vangelis@chromium.org. BUG=368468 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268758

Patch Set 1 #

Patch Set 2 : Restore formatting in about_flags.cc. #

Patch Set 3 : Remove unnecessary cruft, and plumb flag in a better way #

Patch Set 4 : Minor formatting cleanup #

Total comments: 4

Patch Set 5 : Bug fix; requested clean-up #

Total comments: 5

Patch Set 6 : Address more issues #

Patch Set 7 : Fix uses of ResourceProvider::Create() outside of Chrome proper. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -80 lines) Patch
M cc/layers/tiled_layer_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 3 4 5 6 14 chunks +17 lines, -16 lines 0 comments Download
M cc/output/overlay_unittest.cc View 1 2 3 4 5 6 3 chunks +5 lines, -3 lines 0 comments Download
M cc/output/renderer_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/picture_layer_tiling_set_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/picture_layer_tiling_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/prioritized_resource_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/prioritized_tile_set_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 chunks +9 lines, -3 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 6 chunks +19 lines, -9 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 25 chunks +35 lines, -26 lines 0 comments Download
M cc/resources/resource_update_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/scoped_resource_unittest.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/resources/video_resource_updater_unittest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/pixel_test.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jvanverth1
6 years, 7 months ago (2014-05-05 17:58:58 UTC) #1
Vangelis Kokkevis
The ResourceProvider is currently dealing mostly with backing surfaces for tiles so it seems a ...
6 years, 7 months ago (2014-05-05 18:33:22 UTC) #2
jvanverth1
On 2014/05/05 18:33:22, Vangelis Kokkevis wrote: > The ResourceProvider is currently dealing mostly with backing ...
6 years, 7 months ago (2014-05-05 18:58:22 UTC) #3
enne (OOO)
If it needs to get set in SkSurface::NewRenderTarget, then I don't see a better way ...
6 years, 7 months ago (2014-05-05 21:01:01 UTC) #4
piman
https://codereview.chromium.org/266743003/diff/60001/content/public/common/content_switches.h File content/public/common/content_switches.h (right): https://codereview.chromium.org/266743003/diff/60001/content/public/common/content_switches.h#newcode49 content/public/common/content_switches.h:49: CONTENT_EXPORT extern const char kDisableDistanceFieldText[]; Can you add those ...
6 years, 7 months ago (2014-05-05 21:04:54 UTC) #5
alokp
It looks ugly but necessary for now. Once RasterBuffer moves out of ResourceProvider to various ...
6 years, 7 months ago (2014-05-05 21:07:38 UTC) #6
reveman
https://codereview.chromium.org/266743003/diff/60001/cc/resources/resource_provider.h File cc/resources/resource_provider.h (right): https://codereview.chromium.org/266743003/diff/60001/cc/resources/resource_provider.h#newcode496 cc/resources/resource_provider.h:496: bool use_distance_field_text_; Can this be "const bool" and set ...
6 years, 7 months ago (2014-05-05 21:15:18 UTC) #7
jvanverth1
I also fixed a bug in RenderThreadImpl::Init() which would have turned on distance field text ...
6 years, 7 months ago (2014-05-06 14:27:21 UTC) #8
piman
lgtm
6 years, 7 months ago (2014-05-06 17:58:50 UTC) #9
enne (OOO)
lgtm Please format your change description to wrap at 72 columns, if you don't mind. ...
6 years, 7 months ago (2014-05-06 18:19:54 UTC) #10
jvanverth1
On 2014/05/06 18:19:54, enne wrote: > lgtm > > Please format your change description to ...
6 years, 7 months ago (2014-05-06 18:30:31 UTC) #11
enne (OOO)
> https://codereview.chromium.org/266743003/diff/80001/content/renderer/render_thread_impl.cc > > File content/renderer/render_thread_impl.cc (right): > > > > > https://codereview.chromium.org/266743003/diff/80001/content/renderer/render_thread_impl.cc#newcode438 > > ...
6 years, 7 months ago (2014-05-06 18:38:04 UTC) #12
alokp
lgtm https://codereview.chromium.org/266743003/diff/80001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/266743003/diff/80001/cc/resources/resource_provider.cc#newcode472 cc/resources/resource_provider.cc:472: SkSurface::TextRenderMode trm = nit: style guide does not ...
6 years, 7 months ago (2014-05-06 18:41:10 UTC) #13
jvanverth1
https://codereview.chromium.org/266743003/diff/80001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/266743003/diff/80001/cc/resources/resource_provider.cc#newcode472 cc/resources/resource_provider.cc:472: SkSurface::TextRenderMode trm = On 2014/05/06 18:41:11, Alok Priyadarshi wrote: ...
6 years, 7 months ago (2014-05-06 20:09:38 UTC) #14
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 7 months ago (2014-05-06 20:14:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvanverth@google.com/266743003/90001
6 years, 7 months ago (2014-05-06 20:16:16 UTC) #16
jvanverth1
The CQ bit was unchecked by jvanverth@google.com
6 years, 7 months ago (2014-05-06 21:07:54 UTC) #17
jvanverth1
The CQ bit was checked by jvanverth@google.com
6 years, 7 months ago (2014-05-06 21:55:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvanverth@google.com/266743003/110001
6 years, 7 months ago (2014-05-06 21:56:39 UTC) #19
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 14:48:53 UTC) #20
Message was sent while issue was closed.
Change committed as 268758

Powered by Google App Engine
This is Rietveld 408576698