Bug 58084

Summary: [CG] Refactor get/putImageData routines from ImageBufferCG into a (new) ImageBufferDataCG.cpp
Product: WebKit Reporter: Matthew Delaney <mdelaney7>
Component: CanvasAssignee: Matthew Delaney <mdelaney7>
Status: RESOLVED FIXED    
Severity: Normal CC: cmarrin, dglazkov, mdelaney7, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 58088    
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch simon.fraser: review+

Matthew Delaney
Reported 2011-04-07 14:52:48 PDT
The routines for getting/putting image data from/to the ImageBuffer's backing store are solely tied to that backing store and are also getting a bit complicated. It makes sense to create an ImageBufferData.cpp to house this logic.
Attachments
Patch (31.16 KB, patch)
2011-04-08 11:40 PDT, Matthew Delaney
no flags
Patch (31.20 KB, patch)
2011-04-08 15:45 PDT, Matthew Delaney
no flags
Patch (68.47 KB, patch)
2011-04-13 16:05 PDT, Matthew Delaney
no flags
Patch (67.75 KB, patch)
2011-04-13 16:29 PDT, Matthew Delaney
simon.fraser: review+
Matthew Delaney
Comment 1 2011-04-08 11:40:20 PDT
Matthew Delaney
Comment 2 2011-04-08 15:31:02 PDT
EWS bots likely couldn't patch because of the xcodeproj file changing in the interim. I'm going to try again on the EWS bots by uploading the same patch again (after an update). If they just fail again (likely), I'll give it a run this evening when traffic is hopefully slower. I'm unsure of the project file changes needed for other projects and am pretty sure that the refactoring may need extra changes on other projects anyhow.
Matthew Delaney
Comment 3 2011-04-08 15:45:59 PDT
WebKit Review Bot
Comment 4 2011-04-08 16:26:39 PDT
Matthew Delaney
Comment 5 2011-04-13 16:05:03 PDT
Matthew Delaney
Comment 6 2011-04-13 16:29:08 PDT
Simon Fraser (smfr)
Comment 7 2011-04-13 16:36:09 PDT
Comment on attachment 89490 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=89490&action=review > Source/WebCore/platform/graphics/ImageBufferData.h:44 > +#if (PLATFORM(MAC) && PLATFORM(CA) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)) > +#define WTF_USE_IOSURFACE_CANVAS_BACKING_STORE 1 > +#endif Shouldn't this be in ImageBufferCG.h?
Matthew Delaney
Comment 8 2011-04-13 16:39:50 PDT
> > +#if (PLATFORM(MAC) && PLATFORM(CA) && !defined(BUILDING_ON_TIGER) && !defined(BUILDING_ON_LEOPARD) && !defined(BUILDING_ON_SNOW_LEOPARD)) > > +#define WTF_USE_IOSURFACE_CANVAS_BACKING_STORE 1 > > +#endif > > Shouldn't this be in ImageBufferCG.h? It was in ImageBuffer.h because it was need there and below. I suppose since it's more specific to CG land and it wouldn't hurt, I'll just move it to ImageBufferCG.h.
Matthew Delaney
Comment 9 2011-04-13 16:49:46 PDT
Note You need to log in before you can comment on or make changes to this bug.