Changeset 140158 in webkit


Ignore:
Timestamp:
Jan 18, 2013 9:01:03 AM (11 years ago)
Author:
danakj@chromium.org
Message:

[chromium] Remove the contents of WebVideoFrame class
https://bugs.webkit.org/show_bug.cgi?id=106037

Reviewed by James Robinson.

This class becomes an empty base class now, used only for the API
boundary.

  • chromium/public/WebVideoFrame.h:

(WebKit):

Location:
trunk/Source/Platform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/Platform/ChangeLog

    r139352 r140158  
     12013-01-18  Dana Jansens  <danakj@chromium.org>
     2
     3        [chromium] Remove the contents of WebVideoFrame class
     4        https://bugs.webkit.org/show_bug.cgi?id=106037
     5
     6        Reviewed by James Robinson.
     7
     8        This class becomes an empty base class now, used only for the API
     9        boundary.
     10
     11        * chromium/public/WebVideoFrame.h:
     12        (WebKit):
     13
    1142013-01-10  Tommy Widenflycht  <tommyw@google.com>
    215
  • trunk/Source/Platform/chromium/public/WebVideoFrame.h

    r132448 r140158  
    3737namespace WebKit {
    3838
    39 // A proxy video frame interface to communicate frame data between chromium
    40 // and WebKit.
    41 // Keep in sync with chromium's media::VideoFrame::Format.
     39// A base class for the container which holds a media::VideoFrame.
    4240class WebVideoFrame {
    4341public:
    44     enum {
    45         rgbPlane = 0,
    46         numRGBPlanes = 1
    47     };
    48     enum {
    49         yPlane = 0,
    50         uPlane = 1,
    51         vPlane = 2,
    52         numYUVPlanes = 3
    53     };
    54     enum { maxPlanes = 3 };
    55 
    56     enum Format {
    57         FormatInvalid = 0,
    58         FormatRGB32 = 4,
    59         FormatYV12 = 6,
    60         FormatYV16 = 7,
    61         FormatEmpty = 9,
    62         FormatI420 = 11,
    63         FormatNativeTexture = 12,
    64     };
    65 
    6642    virtual ~WebVideoFrame() { }
    67     virtual Format format() const { return FormatInvalid; }
    68     virtual unsigned width() const { return 0; }
    69     virtual unsigned height() const { return 0; }
    70     virtual unsigned planes() const { return 0; }
    71     virtual int stride(unsigned plane) const { return 0; }
    72     virtual const void* data(unsigned plane) const { return 0; }
    73     virtual unsigned textureId() const { return 0; }
    74     virtual unsigned textureTarget() const { return 0; }
    75     virtual WebKit::WebRect visibleRect() const { return WebKit::WebRect(); }
    76     virtual WebKit::WebSize textureSize() const { return WebKit::WebSize(); }
    7743};
    7844
Note: See TracChangeset for help on using the changeset viewer.