Bug 105687 - [EFL][WK2] Refactor snapshot taking code
Summary: [EFL][WK2] Refactor snapshot taking code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit EFL (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords:
Depends on:
Blocks: 103468
  Show dependency treegraph
 
Reported: 2012-12-23 06:31 PST by Chris Dumez
Modified: 2012-12-25 04:29 PST (History)
8 users (show)

See Also:


Attachments
Patch (8.56 KB, patch)
2012-12-23 06:40 PST, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (8.78 KB, patch)
2012-12-24 04:59 PST, Chris Dumez
kenneth: review+
webkit.review.bot: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (8.73 KB, patch)
2012-12-25 03:57 PST, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2012-12-23 06:31:07 PST
We should rename WKViewGetSnapshot to WKViewCreateSnapshot since the returned value needs to be adopted. The snapshot taking code should also be refactored to use smart pointers when possible.
Comment 1 Chris Dumez 2012-12-23 06:40:23 PST
Created attachment 180619 [details]
Patch
Comment 2 Chris Dumez 2012-12-23 13:04:50 PST
Comment on attachment 180619 [details]
Patch

I think we can simplify a bit more, clearing flags for now.
Comment 3 Chris Dumez 2012-12-24 04:24:48 PST
(In reply to comment #2)
> (From update of attachment 180619 [details])
> I think we can simplify a bit more, clearing flags for now.

Nevermind, I think this is good enough for now. The patch is ready for review.
Comment 4 Chris Dumez 2012-12-24 04:41:19 PST
Comment on attachment 180619 [details]
Patch

Actually, we can remove the call to glBindTexture() before glReadPixels(). It is not needed as glReadPixels() reads from the frame buffer, not the texture.
Comment 5 Chris Dumez 2012-12-24 04:59:10 PST
Created attachment 180663 [details]
Patch
Comment 6 Kenneth Rohde Christiansen 2012-12-25 03:29:19 PST
Comment on attachment 180663 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=180663&action=review

> Source/WebKit2/ChangeLog:21
> +        a cairo_surface_t instead of a WKType. The value should be
> +        converted to a WKType a C API level.

at*
Comment 7 WebKit Review Bot 2012-12-25 03:31:33 PST
Comment on attachment 180663 [details]
Patch

Rejecting attachment 180663 [details] from commit-queue.

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', u'--status-host=queues.webkit.org', ..." exit_code: 1 cwd: /mnt/git/webkit-commit-queue

ChangeLog entry in Tools/ChangeLog is not at the top of the file.

Full output: http://queues.webkit.org/results/15503681
Comment 8 Chris Dumez 2012-12-25 03:57:21 PST
Created attachment 180706 [details]
Patch for landing
Comment 9 WebKit Review Bot 2012-12-25 04:29:43 PST
Comment on attachment 180706 [details]
Patch for landing

Clearing flags on attachment: 180706

Committed r138462: <http://trac.webkit.org/changeset/138462>
Comment 10 WebKit Review Bot 2012-12-25 04:29:48 PST
All reviewed patches have been landed.  Closing bug.