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

Issue 1416643002: Enable pp::flash::FontFile support on Windows (Closed)

Created:
5 years, 2 months ago by Xing
Modified:
5 years, 1 month ago
Reviewers:
bbudge, raymes, forshaw, ilja
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, teravest+watch_chromium.org, bradnelson+warch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable pp::flash::FontFile support on Windows Part 1: Added Windows implementation using Skia for PepperFlashFontFileHost. This patch adds a simple Windows implementation of PepperFlashFontFileHost using Skia to access the font data. By implementing this PepperFlash can remove some use cases of GDI to support Win32k lockdown. AUTHOR=forshaw@google.com Part 2: To support win32k lockdown, Pepper flash needs to switch Win GDI font calls to pp::flash::FontFile PPAPI. This API was only supported on Linux, and it is supported on Windows starting from M48. Considering backward compatibility, we still need to fallback to GDI calls for Chrome versions where Win32k lockdown is not available yet. We add a new version of PB_Flash_FontFile interface: PPB_FLASH_FONTFILE_INTERFACE_0_2 This new version does not change any API, its availability shows that pp::flash:FontFile is supported for Windows, and Pepper flash can use it to decide whether it should call pp::flash:FontFile API or fall back to Win GDI calls. AUTHOR=xzhang@adobe.com BUG=523278 R=bbudge@chromium.org, raymes@chromium.org, forshaw@google.com Committed: https://crrev.com/eca2b40dd6ffacdf9e1772e5d18c3623d71b2946 Cr-Commit-Position: refs/heads/master@{#357457}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Based generated thunk files #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -34 lines) Patch
M chrome/renderer/pepper/pepper_flash_font_file_host.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/pepper/pepper_flash_font_file_host.cc View 1 4 chunks +48 lines, -16 lines 4 comments Download
M ppapi/api/private/ppb_flash_font_file.idl View 1 2 chunks +11 lines, -1 line 0 comments Download
M ppapi/c/private/ppb_flash_font_file.h View 1 4 chunks +21 lines, -4 lines 0 comments Download
M ppapi/cpp/private/flash_font_file.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/cpp/private/flash_font_file.cc View 1 3 chunks +22 lines, -3 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_flash.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_font_file_thunk.cc View 1 4 chunks +27 lines, -10 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
Xing
5 years, 2 months ago (2015-10-19 18:21:04 UTC) #3
bbudge
LGTM w/comment https://codereview.chromium.org/1416643002/diff/1/chrome/renderer/pepper/pepper_flash_font_file_host.cc File chrome/renderer/pepper/pepper_flash_font_file_host.cc (right): https://codereview.chromium.org/1416643002/diff/1/chrome/renderer/pepper/pepper_flash_font_file_host.cc#newcode74 chrome/renderer/pepper/pepper_flash_font_file_host.cc:74: *length = typeface_->getTableSize(table); nit: on this code ...
5 years, 2 months ago (2015-10-20 20:17:24 UTC) #4
Xing
On 2015/10/20 20:17:24, bbudge wrote: > LGTM w/comment > > https://codereview.chromium.org/1416643002/diff/1/chrome/renderer/pepper/pepper_flash_font_file_host.cc > File chrome/renderer/pepper/pepper_flash_font_file_host.cc (right): ...
5 years, 2 months ago (2015-10-21 13:26:34 UTC) #5
Xing
Figured out how to use ppapi/generators/generator.py, it seems to require "clang-format.bat" (idl_outfile.py) instead of "clang-format" ...
5 years, 1 month ago (2015-10-23 21:59:03 UTC) #6
ilja
LGTM, but best if Bill takes a second look. Sending it to the trybots.
5 years, 1 month ago (2015-10-27 23:33:10 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416643002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416643002/20001
5 years, 1 month ago (2015-10-27 23:35:02 UTC) #10
bbudge
Some questions I missed last time. https://codereview.chromium.org/1416643002/diff/1/chrome/renderer/pepper/pepper_flash_font_file_host.cc File chrome/renderer/pepper/pepper_flash_font_file_host.cc (right): https://codereview.chromium.org/1416643002/diff/1/chrome/renderer/pepper/pepper_flash_font_file_host.cc#newcode74 chrome/renderer/pepper/pepper_flash_font_file_host.cc:74: *length = typeface_->getTableSize(table); ...
5 years, 1 month ago (2015-10-28 00:06:33 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-10-28 00:57:39 UTC) #13
Xing
https://codereview.chromium.org/1416643002/diff/20001/chrome/renderer/pepper/pepper_flash_font_file_host.cc File chrome/renderer/pepper/pepper_flash_font_file_host.cc (right): https://codereview.chromium.org/1416643002/diff/20001/chrome/renderer/pepper/pepper_flash_font_file_host.cc#newcode74 chrome/renderer/pepper/pepper_flash_font_file_host.cc:74: if (buffer == NULL) { On 2015/10/28 00:06:33, bbudge ...
5 years, 1 month ago (2015-10-28 21:52:50 UTC) #14
bbudge
Still LGTM. Thanks for addressing my comments. https://codereview.chromium.org/1416643002/diff/20001/chrome/renderer/pepper/pepper_flash_font_file_host.cc File chrome/renderer/pepper/pepper_flash_font_file_host.cc (right): https://codereview.chromium.org/1416643002/diff/20001/chrome/renderer/pepper/pepper_flash_font_file_host.cc#newcode74 chrome/renderer/pepper/pepper_flash_font_file_host.cc:74: if (buffer ...
5 years, 1 month ago (2015-11-02 20:20:17 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416643002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416643002/20001
5 years, 1 month ago (2015-11-02 21:27:04 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 1 month ago (2015-11-02 22:43:02 UTC) #18
commit-bot: I haz the power
5 years, 1 month ago (2015-11-02 22:43:55 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/eca2b40dd6ffacdf9e1772e5d18c3623d71b2946
Cr-Commit-Position: refs/heads/master@{#357457}

Powered by Google App Engine
This is Rietveld 408576698