[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:21:36 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=29295

--- Comment #5 from Andrea Canciani <ranma42 at gmail.com> 2010-08-08 05:21:35 PDT ---
(In reply to comment #4)
> (In reply to comment #3)
> > Does it make sense at all?
> > Quartz surfaces can't actually change their extents.
> > What is that function supposed to do?
> 
> Wait, I might have misunderstood a part here.  Are Quartz surfaces always
> backed by a CGBitmap with a memory buffer for a fixed width, height?
No, they can also be backed by any CGContext. In this case some operation will
fail (example: operator SATURATE), but they should mostly work.
> 
> (I was under the impression that Quartz surfaces were unlimited in size for
> some reason, and modifying the extents made things work here, but perhaps it
> was just writing outside memory bounds?).
AFAICT all CGContext implementations seem to have a fixed size. Even in your
use case I would expect you to invalidate the old surface (since it has an
incorrect size) and create a new one.

-- 
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