Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(549)

Issue 5364052: Retry GDI font failure when sandbox is in place (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by arthurhsu
Modified:
12 years, 6 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Retry GDI font failure when sandbox is in place BUG=none TEST=none Closed without commit, use Ben's version http://codereview.appspot.com/5379043

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -2 lines) Patch
A include/ports/SkSandbox_win.h View 1 chunk +26 lines, -0 lines 2 comments Download
M src/pdf/SkPDFFont.cpp View 4 chunks +12 lines, -2 lines 1 comment Download
M src/ports/SkFontHost_win.cpp View 2 chunks +6 lines, -0 lines 1 comment Download

Messages

Total messages: 7
arthurhsu
This is the skia part, for Chromium part, see http://codereview.chromium.org/8566026/
12 years, 6 months ago (2011-11-15 04:28:11 UTC) #1
reed1
http://codereview.appspot.com/5364052/diff/1/include/ports/SkSandbox_win.h File include/ports/SkSandbox_win.h (right): http://codereview.appspot.com/5364052/diff/1/include/ports/SkSandbox_win.h#newcode18 include/ports/SkSandbox_win.h:18: public: lower-case 'e' const LOGFONT&
12 years, 6 months ago (2011-11-15 13:09:16 UTC) #2
Steve VanDeBogart
http://codereview.appspot.com/5364052/diff/1/include/ports/SkSandbox_win.h File include/ports/SkSandbox_win.h (right): http://codereview.appspot.com/5364052/diff/1/include/ports/SkSandbox_win.h#newcode17 include/ports/SkSandbox_win.h:17: class SkSandbox { There's no reason for this to ...
12 years, 6 months ago (2011-11-15 17:02:04 UTC) #3
bungeman
On 2011/11/15 04:28:11, arthurhsu wrote: > This is the skia part, for Chromium part, see ...
12 years, 6 months ago (2011-11-15 18:41:38 UTC) #4
arthurhsu
Can you elaborate a bit how this approach works when Skia is in the sandboxed ...
12 years, 6 months ago (2011-11-15 18:56:20 UTC) #5
bungeman
In this case on Windows, the 'handle' is the LOGFONT. No handle is recreated. The ...
12 years, 6 months ago (2011-11-15 19:16:06 UTC) #6
arthurhsu
12 years, 6 months ago (2011-11-15 21:42:51 UTC) #7
On 2011/11/15 19:16:06, bungeman wrote:
> In this case on Windows, the 'handle' is the LOGFONT. No handle is recreated.
> The way this would work in Chrome is that the Chrome gyp would not add
> SkFontHost_sandbox_none.cpp. Instead Chrome would have its own
> skia/ext/SkFontHost_sandbox_win.cpp which would then make the IPC to get GDI
to
> remap the font data into system memory.
> 
> The advantage is that Skia will always be the one kicking off this process on
> failure cases only, so this will allow the IPC to happen on both the printing
> and non-printing paths.
> 
> On 2011/11/15 18:56:20, arthurhsu wrote:
> > Can you elaborate a bit how this approach works when Skia is in the
> > sandboxed process?  The moment GDI call fails, recreating a handle for that
> > won't succeed either.  Sandboxed process does not have file access
> > privilege and that's why it's relayed to the browser process to load the
> > font again.
> > 
> > On Tue, Nov 15, 2011 at 10:41 AM, <mailto:bungeman@google.com> wrote:
> > 
> > > On 2011/11/15 04:28:11, arthurhsu wrote:
> > >
> > >> This is the skia part, for Chromium part, see
> > >>
> >
>
http://codereview.chromium.**org/8566026/%253Chttp://codereview.chromium.org/...>
> > >>
> > >
> > > I do not believe this is the way to go about this. Please see
> > >
> >
>
http://codereview.appspot.com/**5379043%253Chttp://codereview.appspot.com/537...>.
> > >
> > >
> >
>
http://codereview.appspot.com/**5364052/%253Chttp://codereview.appspot.com/53...>
> > >

LGTM

Please commit and I can start from here.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b