Summary: | [GTK] Crop support in BitmapImage | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Philippe Normand <pnormand> | ||||
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED INVALID | ||||||
Severity: | Normal | CC: | alex, mrobinson, pnormand | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 77087 | ||||||
Attachments: |
|
Description
Philippe Normand
2012-02-27 02:10:45 PST
Created attachment 128991 [details]
Crop support in BitmapImage
Comment on attachment 128991 [details]
Crop support in BitmapImage
Is this used anywhere?
(In reply to comment #2) > (From update of attachment 128991 [details]) > Is this used anywhere? In the patch of bug 77087 :) I'm not sure this is the right approach though, I did this as an experiment and it seems to work but my knowledge of the Cairo stuff is a bit limited. Alex, what do you think about this? (In reply to comment #4) > Alex, what do you think about this? Perhaps ::crop could me a method on ImageGstreamer. Then you could just adjust the srcRect you pass into Image::draw. Comment on attachment 128991 [details]
Crop support in BitmapImage
I think perhaps platform-independent Image is the wrong place for this. :/ Also it seems like a change like this should just go in the patch that depends on it -- instead of introducing code that is totally dead. Perhaps we can chat about another design.
(In reply to comment #5) > (In reply to comment #4) > > Alex, what do you think about this? > > Perhaps ::crop could me a method on ImageGstreamer. Then you could just adjust the srcRect you pass into Image::draw. the rect in MediaPlayerPrivateGStreamer::paint() is the destination rectangle, I think. Not the source rectangle. What I need to crop is the source. Will do as Martin suggests. Thanks! |