Bug 100042 - [chromium] Add textureWidth() and textureHeight() to WebVideoFrame
Summary: [chromium] Add textureWidth() and textureHeight() to WebVideoFrame
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: John Sheu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-22 15:42 PDT by John Sheu
Modified: 2012-10-24 23:32 PDT (History)
11 users (show)

See Also:


Attachments
Patch (1.47 KB, patch)
2012-10-22 15:43 PDT, John Sheu
no flags Details | Formatted Diff | Diff
Patch (1.64 KB, patch)
2012-10-22 15:57 PDT, John Sheu
no flags Details | Formatted Diff | Diff
Patch (2.18 KB, patch)
2012-10-24 15:40 PDT, John Sheu
no flags Details | Formatted Diff | Diff
Patch (1.83 KB, patch)
2012-10-24 17:46 PDT, John Sheu
no flags Details | Formatted Diff | Diff
Patch (2.04 KB, patch)
2012-10-24 18:15 PDT, John Sheu
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Sheu 2012-10-22 15:42:53 PDT
[chromium] Add textureWidth() and textureHeight() to WebVideoFrame
Comment 1 John Sheu 2012-10-22 15:43:36 PDT
Created attachment 170005 [details]
Patch
Comment 2 WebKit Review Bot 2012-10-22 15:47:41 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 John Sheu 2012-10-22 15:50:26 PDT
Just an interface change at the moment.  I'd like to remove stride() eventually, but only after I land the Chromium-side changes as wekk,
Comment 4 James Robinson 2012-10-22 15:51:30 PDT
Comment on attachment 170005 [details]
Patch

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

> Source/Platform/ChangeLog:8
> +        Additional information of the change such as approach, rationale. Please add per-function descriptions below (OOPS!).

You have to fill something out here.  For this, when would textureWidth/textureHight be different from the frame's width/height?  Why do we need separate fields?
Comment 5 John Sheu 2012-10-22 15:57:04 PDT
Created attachment 170009 [details]
Patch
Comment 6 John Sheu 2012-10-22 17:57:58 PDT
Please take a look here.
Comment 7 James Robinson 2012-10-22 20:18:27 PDT
I can't find any equivalent in media/base/video_frame.h.  Perhaps there's some context here I'm missing?  Is there a crbug or chromium-side code review that goes along with this?
Comment 8 John Sheu 2012-10-22 20:24:13 PDT
The Chromium bug lives at http://crbug.com/155416, and the Chromium-side change is WIP on my checkout.  I can't actually checkin for Chromium until this interface change lands, so this one's going first.  (As the interface change just adds two accessors, it's safe to do first.)
Comment 9 Ami Fischman 2012-10-22 20:30:22 PDT
(In reply to comment #8)
> The Chromium bug lives at http://crbug.com/155416, and the Chromium-side change is WIP on my checkout.  I can't actually checkin for Chromium until this interface change lands, so this one's going first.  (As the interface change just adds two accessors, it's safe to do first.)

@sheu: actually, this is http://crbug.com/140509 :)  You taking that over? (that'd be great, since I haven't had time to touch it)

(155416 describes a symptom; 140509 describes the root cause and a plan for fixing it)
Comment 10 James Robinson 2012-10-22 20:35:32 PDT
Comment on attachment 170009 [details]
Patch

Thanks for the info. Slavomir (cc'd) is working on moving the dependency from media -> cc down to not need the WebVideoFrame intermediate data structure, so hopefully this won't be needed in WebKit for long.  But for now it definitely is.
Comment 11 John Sheu 2012-10-24 15:40:53 PDT
Created attachment 170491 [details]
Patch
Comment 12 John Sheu 2012-10-24 15:42:49 PDT
Updated patch.

I have a question on naming in the interface.  To wit: is visibleX/visibleY/visibleWidth/visibleHeight the right name to use for the added interface functions, in WebKit style?
Comment 13 James Robinson 2012-10-24 16:20:02 PDT
(In reply to comment #12)
> Updated patch.
> 
> I have a question on naming in the interface.  To wit: is visibleX/visibleY/visibleWidth/visibleHeight the right name to use for the added interface functions, in WebKit style?

The naming is correct - accessors should match the variable name they are accessing - but it'd be better to have the whole thing be one accessor that returns type WebRect instead of 4 individual methods.
Comment 14 John Sheu 2012-10-24 17:46:13 PDT
Created attachment 170523 [details]
Patch
Comment 15 Peter Beverloo (cr-android ews) 2012-10-24 18:07:48 PDT
Comment on attachment 170523 [details]
Patch

Attachment 170523 [details] did not pass cr-android-ews (chromium-android):
Output: http://queues.webkit.org/results/14554451
Comment 16 John Sheu 2012-10-24 18:15:32 PDT
Created attachment 170530 [details]
Patch
Comment 17 James Robinson 2012-10-24 18:19:02 PDT
Comment on attachment 170530 [details]
Patch

Great, R=me
Comment 18 WebKit Review Bot 2012-10-24 23:32:05 PDT
Comment on attachment 170530 [details]
Patch

Clearing flags on attachment: 170530

Committed r132448: <http://trac.webkit.org/changeset/132448>
Comment 19 WebKit Review Bot 2012-10-24 23:32:09 PDT
All reviewed patches have been landed.  Closing bug.