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

Issue 9360045: Rename PPB_Font to PPB_BrowserFont_Trusted. (Closed)

Created:
8 years, 10 months ago by brettw
Modified:
8 years, 10 months ago
Reviewers:
viettrungluu
CC:
chromium-reviews, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Rename PPB_Font to PPB_BrowserFont_Trusted. PPB_Font can never be exported to NaCl since it relies on in-process WebKit. So I'm renaming this to BrowserFont_Trusted to imply that this is the way that the browser would render fonts in the content area (if we export a font API to NaCl in the future, it will likely be a simpler native font API). The new API is binary compatible with the old font API, so I map PPB_Font to PPB_BrowserFont_Trusted for now to avoid breaking Flash (which uses this). When we update Flash and push it out, we can remove the mapping and PPB_Font. This does a lot of cleanup of the font implementation. It had complexity from the fact that it used to run on a different thread. I was able to remove a lot of code. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=122564

Patch Set 1 #

Total comments: 2

Patch Set 2 : REQUIRED CHANGELIST DESCRIPTIONS ARE A WASTE OF TIME #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 1

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1719 lines, -599 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper_message_filter.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
A ppapi/api/trusted/ppb_browser_font_trusted.idl View 1 chunk +257 lines, -0 lines 0 comments Download
A ppapi/c/trusted/ppb_browser_font_trusted.h View 1 chunk +278 lines, -0 lines 0 comments Download
A ppapi/cpp/trusted/browser_font_trusted.h View 1 2 3 1 chunk +147 lines, -0 lines 0 comments Download
A ppapi/cpp/trusted/browser_font_trusted.cc View 1 2 3 1 chunk +276 lines, -0 lines 0 comments Download
M ppapi/example/example.cc View 1 2 3 11 chunks +46 lines, -55 lines 0 comments Download
M ppapi/examples/font/simple_font.cc View 1 2 3 4 3 chunks +21 lines, -20 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 3 chunks +4 lines, -6 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 2 chunks +1 line, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 2 chunks +2 lines, -4 lines 0 comments Download
D ppapi/proxy/ppb_font_proxy.h View 1 chunk +0 lines, -42 lines 0 comments Download
D ppapi/proxy/ppb_font_proxy.cc View 1 chunk +0 lines, -54 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 2 chunks +17 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 4 chunks +11 lines, -13 lines 0 comments Download
A ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h View 1 1 chunk +91 lines, -0 lines 0 comments Download
A ppapi/shared_impl/private/ppb_browser_font_trusted_shared.cc View 1 2 3 4 5 1 chunk +325 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 2 chunks +1 line, -1 line 0 comments Download
D ppapi/shared_impl/webkit_forwarding.h View 1 chunk +0 lines, -86 lines 0 comments Download
D ppapi/shared_impl/webkit_forwarding.cc View 1 chunk +0 lines, -34 lines 0 comments Download
A ppapi/tests/test_browser_font.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A ppapi/tests/test_browser_font.cc View 1 2 3 4 5 6 1 chunk +101 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 2 chunks +8 lines, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_public_dev.h View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
A ppapi/thunk/ppb_browser_font_trusted_api.h View 1 chunk +39 lines, -0 lines 0 comments Download
A + ppapi/thunk/ppb_browser_font_trusted_thunk.cc View 4 chunks +25 lines, -22 lines 0 comments Download
D ppapi/thunk/ppb_font_api.h View 1 chunk +0 lines, -48 lines 0 comments Download
D ppapi/thunk/ppb_font_thunk.cc View 1 chunk +0 lines, -101 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 3 chunks +4 lines, -5 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/host_globals.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 chunk +5 lines, -0 lines 0 comments Download
D webkit/plugins/ppapi/ppb_font_impl.h View 1 chunk +0 lines, -41 lines 0 comments Download
D webkit/plugins/ppapi/ppb_font_impl.cc View 1 chunk +0 lines, -33 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 3 chunks +13 lines, -13 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
brettw
8 years, 10 months ago (2012-02-14 18:17:30 UTC) #1
viettrungluu
http://codereview.chromium.org/9360045/diff/1/ppapi/proxy/resource_creation_proxy.cc File ppapi/proxy/resource_creation_proxy.cc (right): http://codereview.chromium.org/9360045/diff/1/ppapi/proxy/resource_creation_proxy.cc#newcode39 ppapi/proxy/resource_creation_proxy.cc:39: #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" Errrr, you forgot to add this to ...
8 years, 10 months ago (2012-02-14 22:29:42 UTC) #2
brettw
http://codereview.chromium.org/9360045/diff/1/ppapi/proxy/resource_creation_proxy.cc File ppapi/proxy/resource_creation_proxy.cc (right): http://codereview.chromium.org/9360045/diff/1/ppapi/proxy/resource_creation_proxy.cc#newcode39 ppapi/proxy/resource_creation_proxy.cc:39: #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" Uploaded.
8 years, 10 months ago (2012-02-14 23:45:05 UTC) #3
viettrungluu
Lots of boilerplate-ish changes, which look okay to me, but ... it's kind of hard ...
8 years, 10 months ago (2012-02-15 04:32:46 UTC) #4
viettrungluu
http://codereview.chromium.org/9360045/diff/6001/ppapi/thunk/interfaces_ppb_private.h File ppapi/thunk/interfaces_ppb_private.h (right): http://codereview.chromium.org/9360045/diff/6001/ppapi/thunk/interfaces_ppb_private.h#newcode39 ppapi/thunk/interfaces_ppb_private.h:39: PROXIED_IFACE(PPB_Instance, PPB_FONT_DEV_INTERFACE_0_6, I suppose you could also just remove ...
8 years, 10 months ago (2012-02-15 04:37:24 UTC) #5
viettrungluu
http://codereview.chromium.org/9360045/diff/6001/ppapi/shared_impl/private/ppb_browser_font_trusted_shared.cc File ppapi/shared_impl/private/ppb_browser_font_trusted_shared.cc (right): http://codereview.chromium.org/9360045/diff/6001/ppapi/shared_impl/private/ppb_browser_font_trusted_shared.cc#newcode295 ppapi/shared_impl/private/ppb_browser_font_trusted_shared.cc:295: TRACE_EVENT0("ppapi WebKit thread", "FontImpl::DrawTextAt"); eh?
8 years, 10 months ago (2012-02-15 04:42:46 UTC) #6
brettw
Now with sweet tests. I also added a C++ wrapper for it that does autofallback ...
8 years, 10 months ago (2012-02-16 19:19:26 UTC) #7
viettrungluu
lgtm w/comment http://codereview.chromium.org/9360045/diff/15001/ppapi/tests/test_browser_font.cc File ppapi/tests/test_browser_font.cc (right): http://codereview.chromium.org/9360045/diff/15001/ppapi/tests/test_browser_font.cc#newcode49 ppapi/tests/test_browser_font.cc:49: int32_t length1 = font.MeasureText(pp::BrowserFontTextRun("WWW")); Do you also ...
8 years, 10 months ago (2012-02-16 20:31:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brettw@chromium.org/9360045/16004
8 years, 10 months ago (2012-02-16 23:25:12 UTC) #9
commit-bot: I haz the power
8 years, 10 months ago (2012-02-16 23:25:29 UTC) #10
Presubmit check for 9360045-16004 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
If this change has an associated bug, add BUG=[bug number].

If this change requires manual test instructions to QA team, add
TEST=[instructions].

** Presubmit ERRORS **
Missing LGTM from an OWNER for: webkit/glue/webkit_glue.gypi

Presubmit checks took 3.6s to calculate.

Powered by Google App Engine
This is Rietveld 408576698