Title: [120497] trunk/Source/WebCore
- Revision
- 120497
- Author
- [email protected]
- Date
- 2012-06-15 15:00:28 -0700 (Fri, 15 Jun 2012)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (120496 => 120497)
--- trunk/Source/WebCore/ChangeLog 2012-06-15 21:58:39 UTC (rev 120496)
+++ trunk/Source/WebCore/ChangeLog 2012-06-15 22:00:28 UTC (rev 120497)
@@ -1,3 +1,15 @@
+2012-06-15 Ami Fischman <[email protected]>
+
+ [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):
+
2012-06-14 Ryosuke Niwa <[email protected]>
The initial value of text-align should be start instead of -webkit-auto
Modified: trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp (120496 => 120497)
--- trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp 2012-06-15 21:58:39 UTC (rev 120496)
+++ trunk/Source/WebCore/platform/graphics/chromium/cc/CCVideoLayerImpl.cpp 2012-06-15 22:00:28 UTC (rev 120497)
@@ -210,7 +210,13 @@
// NativeTexture hardware decoder.
bool premultipliedAlpha = true;
FloatRect uvRect(0, 0, 1, 1);
- bool flipped = false;
+#if defined(OS_CHROMEOS) && defined(__ARMEL__)
+ bool flipped = true; // Under the covers, implemented by OpenMAX IL.
+#elif defined(OS_WINDOWS)
+ bool flipped = true; // Under the covers, implemented by DXVA.
+#else
+ bool flipped = false; // LibVA (cros/intel), MacOS.
+#endif
OwnPtr<CCTextureDrawQuad> textureQuad = CCTextureDrawQuad::create(sharedQuadState, quadRect, m_frame->textureId(), premultipliedAlpha, uvRect, flipped);
quadList.append(textureQuad.release());
break;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes