RESOLVED FIXED 85728
[Cairo] Implement ImageBuffer::copyImage for BackingStoreCopy == DontCopyBackingStore
https://bugs.webkit.org/show_bug.cgi?id=85728
Summary [Cairo] Implement ImageBuffer::copyImage for BackingStoreCopy == DontCopyBack...
Martin Robinson
Reported 2012-05-06 00:35:05 PDT
This is useful for supporting faster texture uploads in the TextureMapper.
Attachments
Patch (4.47 KB, patch)
2012-05-06 01:30 PDT, Martin Robinson
alex: review+
Martin Robinson
Comment 1 2012-05-06 01:30:20 PDT
Noam Rosenthal
Comment 2 2012-05-06 07:57:09 PDT
Comment on attachment 140420 [details] Patch I'm ok with the TextureMapper changes, please have one of the Cairo folks review the other stuff :)
Alejandro G. Castro
Comment 3 2012-05-07 10:15:25 PDT
Comment on attachment 140420 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140420&action=review LGTM, just a small comment. > Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp:91 > + return BitmapImage::create(cairo_surface_reference(m_data.m_surface)).leakRef(); I don't think the leakRef here is correct because it would returning an Image not an PassRefPtr<Image>, probably removing would be the right option.
Martin Robinson
Comment 4 2012-05-07 16:06:52 PDT
Comment on attachment 140420 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=140420&action=review >> Source/WebCore/platform/graphics/cairo/ImageBufferCairo.cpp:91 >> + return BitmapImage::create(cairo_surface_reference(m_data.m_surface)).leakRef(); > > I don't think the leakRef here is correct because it would returning an Image not an PassRefPtr<Image>, probably removing would be the right option. BitmapImage::create is returning a PassRefPtr already so the leakRef is unnecessary here. I've fixed it and pushed. Thanks for the review!
Martin Robinson
Comment 5 2012-05-07 16:07:02 PDT
Note You need to log in before you can comment on or make changes to this bug.