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

Issue 1325843002: Added directwrite warmup for PPAPI processes. (Closed)

Created:
5 years, 3 months ago by forshaw
Modified:
5 years, 3 months ago
Reviewers:
palmer, jam, Will Harris
CC:
chromium-reviews, darin-cc_chromium.org, jam, rickyz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@add_win32k_enable_policy
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added directwrite warmup for PPAPI processes. This patch warms up the directwrite skia font code when running a PPAPI process under win32k lockdown. This allows users of the Skia (such as the PPAPI itself) to bypass GDI calls when dealing with fonts. BUG=523278 Committed: https://crrev.com/30ce0db09000893a6a44e9ade4912bbd3d45eccc Cr-Commit-Position: refs/heads/master@{#350191}

Patch Set 1 #

Patch Set 2 : Made win32k lockdown check a lazy instance. #

Total comments: 4

Patch Set 3 : Moved duplicated code to shared location. #

Total comments: 2

Patch Set 4 : Removed init check. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -21 lines) Patch
M content/browser/ppapi_plugin_process_host.cc View 1 3 chunks +7 lines, -0 lines 0 comments Download
M content/common/font_warmup_win.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/font_warmup_win.cc View 1 2 3 2 chunks +18 lines, -0 lines 0 comments Download
M content/common/sandbox_win.cc View 1 2 2 chunks +5 lines, -2 lines 0 comments Download
M content/ppapi_plugin/ppapi_plugin_main.cc View 1 2 3 2 chunks +17 lines, -1 line 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 1 2 2 chunks +0 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (7 generated)
forshaw
Please take a look.
5 years, 3 months ago (2015-09-03 00:03:59 UTC) #2
palmer
https://codereview.chromium.org/1325843002/diff/20001/content/browser/ppapi_plugin_process_host.cc File content/browser/ppapi_plugin_process_host.cc (right): https://codereview.chromium.org/1325843002/diff/20001/content/browser/ppapi_plugin_process_host.cc#newcode13 content/browser/ppapi_plugin_process_host.cc:13: #include "base/strings/string_number_conversions.h" You don't use this. https://codereview.chromium.org/1325843002/diff/20001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc ...
5 years, 3 months ago (2015-09-15 21:43:43 UTC) #3
forshaw
https://codereview.chromium.org/1325843002/diff/20001/content/ppapi_plugin/ppapi_thread.cc File content/ppapi_plugin/ppapi_thread.cc (right): https://codereview.chromium.org/1325843002/diff/20001/content/ppapi_plugin/ppapi_thread.cc#newcode103 content/ppapi_plugin/ppapi_thread.cc:103: // Get win32k lockdown policy using a lazy instance ...
5 years, 3 months ago (2015-09-15 21:59:32 UTC) #4
palmer
> I'd love to. Initially I had it in base but wfh@ recommended that would ...
5 years, 3 months ago (2015-09-15 22:01:12 UTC) #5
forshaw
https://codereview.chromium.org/1325843002/diff/20001/content/browser/ppapi_plugin_process_host.cc File content/browser/ppapi_plugin_process_host.cc (right): https://codereview.chromium.org/1325843002/diff/20001/content/browser/ppapi_plugin_process_host.cc#newcode13 content/browser/ppapi_plugin_process_host.cc:13: #include "base/strings/string_number_conversions.h" On 2015/09/15 21:43:43, palmer wrote: > You ...
5 years, 3 months ago (2015-09-16 12:46:57 UTC) #7
palmer
> Used for DoubleToString below. Ohh, OK. LGTM.
5 years, 3 months ago (2015-09-17 20:34:17 UTC) #8
jam
https://codereview.chromium.org/1325843002/diff/60001/content/ppapi_plugin/ppapi_plugin_main.cc File content/ppapi_plugin/ppapi_plugin_main.cc (right): https://codereview.chromium.org/1325843002/diff/60001/content/ppapi_plugin/ppapi_plugin_main.cc#newcode71 content/ppapi_plugin/ppapi_plugin_main.cc:71: void WarmupDirectWrite() { we shouldn't duplicate that code. it ...
5 years, 3 months ago (2015-09-17 21:48:48 UTC) #10
forshaw
PTAL. I've moved the shared code into a single location which any content process can ...
5 years, 3 months ago (2015-09-18 13:07:11 UTC) #11
jam
https://codereview.chromium.org/1325843002/diff/80001/content/common/font_warmup_win.cc File content/common/font_warmup_win.cc (right): https://codereview.chromium.org/1325843002/diff/80001/content/common/font_warmup_win.cc#newcode216 content/common/font_warmup_win.cc:216: warmup_initialized = true; I don't see why these first ...
5 years, 3 months ago (2015-09-21 21:26:26 UTC) #13
jam
lgtm
5 years, 3 months ago (2015-09-21 21:40:46 UTC) #15
forshaw
On 2015/09/21 21:40:46, jam wrote: > lgtm Thanks very much jam@ for the review.
5 years, 3 months ago (2015-09-21 22:03:29 UTC) #16
Will Harris
content/common/sandbox_win.cc lgtm
5 years, 3 months ago (2015-09-22 16:47:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1325843002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1325843002/120001
5 years, 3 months ago (2015-09-22 17:13:23 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:120001)
5 years, 3 months ago (2015-09-22 18:09:06 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-09-22 18:44:10 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/30ce0db09000893a6a44e9ade4912bbd3d45eccc
Cr-Commit-Position: refs/heads/master@{#350191}

Powered by Google App Engine
This is Rietveld 408576698