Revision: 2980
http://skim-app.svn.sourceforge.net/skim-app/?rev=2980&view=rev
Author: hofman
Date: 2007-09-22 10:25:06 -0700 (Sat, 22 Sep 2007)
Log Message:
-----------
Cache constant color.
Modified Paths:
--------------
trunk/CIImage_BDSKExtensions.m
Modified: trunk/CIImage_BDSKExtensions.m
===================================================================
--- trunk/CIImage_BDSKExtensions.m 2007-09-22 12:30:25 UTC (rev 2979)
+++ trunk/CIImage_BDSKExtensions.m 2007-09-22 17:25:06 UTC (rev 2980)
@@ -218,7 +218,10 @@
+ (CIColor *)clearColor;
{
- return [self colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0];
+ static CIColor *clearColor = nil;
+ if (clearColor == nil)
+ clearColor = [[self colorWithRed:0.0 green:0.0 blue:0.0 alpha:0.0]
retain];
+ return clearColor;
}
@end
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit