NSView getRectsBeingDrawn and WebKit plugin
NSView getRectsBeingDrawn and WebKit plugin
- Subject: NSView getRectsBeingDrawn and WebKit plugin
- From: Fielke Gary <email@hidden>
- Date: Wed, 1 Jun 2005 11:24:15 +0930
Hi all,
I know this possibly is better asked in webkit-sdk but I'll try here
first......
I have developed a very small test app that uses getRectsBeingDrawn
inside a custom view's drawRect method to draw two small portions of
a larger image.
(Of course, elsewhere in the app [myCustomView
setNeedsDisplayInRect:rect1] and [myCustomView
setNeedsDisplayInRect:rect2] are used.)
As an application, the getRectsBeingDrawn correctly returns the two
rects.
However, I have now converted this app to a WebKit plugin (Tiger
only) so the customview now appears inside a webkit app such as
Safari. Using the same code as above, the getRectsBeingDrawn now only
returns ONE rect, not two. This single rect is the union of the two
smaller rects.
Consequently, a webkit plugin I'm working on has less than optimal
drawing performance.
Anyone have any thoughts on why this is so?
Thanks,
Gary
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden