Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Re: GC Code cleanup (3)

as part of my portable Cairo GC project, I was wondering if someone has thought about using a GCFactory class (or any similar mechanism) to allow the creation of a extended GC implementations?

for example in my case I created a EGC interface to add support for Composition. at the moment the only existing one is AlphaComposition which adds porter duff to GC.


Laurent M. wrote:
see "GC Code cleanup" for the context.. .


I also noticed the pattern of

Color.carbon_new
Color.gtk_new
Color.win32_new

I was wondering why not have a Color.allocate_new

or have both, or have a ColorFactory.allocate_new for each supported platform, such that my portable GC's GC.getBackground() could then call any of these to get a valid platform specific color instance.

[santa?!! saaaannnta... can u tell'em about that one too pleaaasse]

cheers.




Back to the top