[cairo-bugs] [Bug 29295] Need public function to set/update size of Quartz surface
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Aug 8 05:39:01 PDT 2010
https://bugs.freedesktop.org/show_bug.cgi?id=29295
--- Comment #7 from Andrea Canciani <ranma42 at gmail.com> 2010-08-08 05:39:00 PDT ---
If you didn't create the CGContext yourself (in which case I would expect it to
be a CGBitmapContext or something whose size is known to be constant anyway), I
can probably assume safely that you're using a context that you got from Cocoa.
Please notice that cocoa graphic context are not valid anymore as soon as you
return from the drawing function, or, as Apple example says
(http://developer.apple.com/mac/library/samplecode/JAWTExample/Listings/NativeDrawnCanvas_m.html):
"DO NOT CACHE NSGraphicsContexts -- they may go away."
I can't find a similar statement in the documentation, only in the examples,
but anyway I would consider it a good reason for the safe way (context
recreation).
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list