Changeset 120497 in webkit


Ignore:
Timestamp:
Jun 15, 2012, 3:00:28 PM (13 years ago)
Author:
fischman@chromium.org
Message:

[chromium] Compositor should be aware of |flipped| status of video textures per-platform
https://bugs.webkit.org/show_bug.cgi?id=89189

Reviewed by James Robinson.

No new tests (sadly HW video decode is still only being tested manually for orientation).

  • platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:

(WebCore::CCVideoLayerImpl::appendQuads):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r120495 r120497  
     12012-06-15  Ami Fischman  <fischman@chromium.org>
     2
     3        [chromium] Compositor should be aware of |flipped| status of video textures per-platform
     4        https://bugs.webkit.org/show_bug.cgi?id=89189
     5
     6        Reviewed by James Robinson.
     7
     8        No new tests (sadly HW video decode is still only being tested manually for orientation).
     9
     10        * platform/graphics/chromium/cc/CCVideoLayerImpl.cpp:
     11        (WebCore::CCVideoLayerImpl::appendQuads):
     12
    1132012-06-14  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp

    r120457 r120497  
    211211        bool premultipliedAlpha = true;
    212212        FloatRect uvRect(0, 0, 1, 1);
    213         bool flipped = false;
     213#if defined(OS_CHROMEOS) && defined(__ARMEL__)
     214        bool flipped = true; // Under the covers, implemented by OpenMAX IL.
     215#elif defined(OS_WINDOWS)
     216        bool flipped = true; // Under the covers, implemented by DXVA.
     217#else
     218        bool flipped = false; // LibVA (cros/intel), MacOS.
     219#endif
    214220        OwnPtr<CCTextureDrawQuad> textureQuad = CCTextureDrawQuad::create(sharedQuadState, quadRect, m_frame->textureId(), premultipliedAlpha, uvRect, flipped);
    215221        quadList.append(textureQuad.release());
Note: See TracChangeset for help on using the changeset viewer.