Closed Bug 396373 Opened 17 years ago Closed 12 years ago

don't make Quickdraw calls unless there is a Quickdraw plugin present

Categories

(Core :: Widget: Cocoa, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jaas, Unassigned)

Details

(Keywords: perf, Whiteboard: [not needed for 1.9])

Attachments

(1 file)

We shouldn't make Quickdraw calls unless there is a Quickdraw plugin present. Making QD calls boots our windows off the Quartz fast path. In theory not doing this should improve performance when QD plugins aren't present.
This gets rid of QD stuff we never need to use. Once this cleanup lands I'll post a patch for the real fix, which is never calling ::SetPort unless we have a QD plugin present.
Attachment #281110 - Flags: review?(cbarrett)
Keywords: perf
Comment on attachment 281110 [details] [diff] [review]
pre-fix v1.0 [checked in 2007-09-17 15:55]


>+  // This sets the current port to _savePort.
>+  // todo: Only do if a Quicktime plugin is present in the hierarchy!
>+  ::SetPort(NULL);

>+  ::SetPort(NULL);  // todo: only do if a quicktime plugin is present in the hierarchy!
>   [super lockFocus];

I think in both of these places you mean QuickDraw ;)

Other than that, r+. Why was that qd stuff even there in the first place? Ick.
Attachment #281110 - Flags: review?(cbarrett) → review+
Yeah, I did mean quickdraw in those comments, thanks. The QD stuff I'm removing is left over from when our old gfx impl used it.
Attachment #281110 - Flags: superreview?(roc)
Attachment #281110 - Flags: superreview?(roc)
Attachment #281110 - Flags: superreview+
Attachment #281110 - Flags: approval1.9+
pre-fix v1.0 checked in with colin's comments addressed
can this be marked fixed?
No - I removed QD stuff we *never* need - the QD calls we need to make for the sake of QD plugins are still made all the time, whether or not QD plugins are present.
Comment on attachment 281110 [details] [diff] [review]
pre-fix v1.0 [checked in 2007-09-17 15:55]

Resetting all approval1.9+ flags on bugs that have not been checked in by Oct 22 11:59 PM PDT.  Please re-request approval if needed.
Attachment #281110 - Flags: approval1.9+
Comment on attachment 281110 [details] [diff] [review]
pre-fix v1.0 [checked in 2007-09-17 15:55]

This was landed by josh on 2007-09-17 15:55.
Attachment #281110 - Flags: approval1.9?
Comment on attachment 281110 [details] [diff] [review]
pre-fix v1.0 [checked in 2007-09-17 15:55]

Reset approval flag to + as it was already checked in.
Attachment #281110 - Flags: approval1.9? → approval1.9+
Attachment #281110 - Attachment description: pre-fix v1.0 → pre-fix v1.0 [checked in 2007-09-17 15:55]
I'm using Camino Version 2007102517 (1.5.3) and Console is still giving error message about QuickDraw. Look for a later build?
Those warnings aren't going to stop, even if we fix this bug. They won't stop until users aren't using QD-based plugins, which is some time in the future still.
Whiteboard: [not needed for 1.9]
Assignee: joshmoz → nobody
Closing this out, we don't support the Quickdraw drawing model any more.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: