Lines Matching refs:ImageData
44 // How ImageData re-use works
51 // 1. Plugin makes an asynchronous call that transfers an ImageData to the
53 // 2. Plugin frees its ImageData reference. If it doesn't do this we can't
55 // 3. When the last plugin ref of an ImageData is released, we don't actually
58 // 4. The API implementation that received the ImageData finishes using it.
64 // is a usable ImageData of the right size and format, we'll return it
75 // becomes more difficult to manage. The plugin could have used an ImageData
92 // back from the renderer after an ImageData is swapped out, so it means the
101 ImageDataCacheEntry(ImageData* i)
112 scoped_refptr<ImageData> image;
123 scoped_refptr<ImageData> Get(PPB_ImageData_Shared::ImageDataType type,
126 void Add(ImageData* image_data);
127 void ImageDataUsable(ImageData* image_data);
145 scoped_refptr<ImageData> ImageDataInstanceCache::Get(
158 scoped_refptr<ImageData> ret(images_[i].image);
167 return scoped_refptr<ImageData>();
170 void ImageDataInstanceCache::Add(ImageData* image_data) {
175 void ImageDataInstanceCache::ImageDataUsable(ImageData* image_data) {
232 scoped_refptr<ImageData> Get(PP_Instance instance,
239 void Add(ImageData* image_data);
242 void ImageDataUsable(ImageData* image_data);
270 scoped_refptr<ImageData> ImageDataCache::Get(
277 return scoped_refptr<ImageData>();
281 void ImageDataCache::Add(ImageData* image_data) {
293 void ImageDataCache::ImageDataUsable(ImageData* image_data) {
315 // ImageData -------------------------------------------------------------------
317 ImageData::ImageData(const HostResource& resource,
326 ImageData::~ImageData() {
329 PPB_ImageData_API* ImageData::AsPPB_ImageData_API() {
333 void ImageData::LastPluginRefWasDeleted() {
334 // The plugin no longer needs this ImageData, add it to our cache if it's
341 void ImageData::InstanceWasDeleted() {
345 PP_Bool ImageData::Describe(PP_ImageDataDesc* desc) {
350 int32_t ImageData::GetSharedMemory(int* /* handle */,
357 void ImageData::SetIsCandidateForReuse() {
361 void ImageData::RecycleToPlugin(bool zero_contents) {
376 : ImageData(resource, PPB_ImageData_Shared::PLATFORM, desc) {
438 : ImageData(resource, PPB_ImageData_Shared::SIMPLE, desc),
487 scoped_refptr<ImageData> cached_image_data =
682 ImageData* image_data = static_cast<ImageData*>(enter.object());