| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Mar 27, 2008, at 10:16 AM, vade wrote:
The bits of a CGImageRef live in main memory. Any association with GPU resources is an implementation detail that you have no control over.
This code will leak a CGImageRef every time its called. You get the image from a "Create" call, therefore you own it, no need to retain it yourself. You are likely not noticing the leak at the moment because the image bits haven't been created yet (they aren't created until they are queried).
If you need the bits on the GPU, then the OpenGL samples are better. They have their own caveats of course (that you can't get the contents of an arbitrary window) but thats the tradeoff in this case... -- Reality is what, when you stop believing in it, doesn't go away. Failure is not an option. It is a privilege reserved for those who try. David Duncan |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartz-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartz-dev/email@hidden This email sent to email@hidden
| References: | |
| >some questions about CGWindowListCreateImage() (From: vade <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.