Reviewed by James Robinson.
[chromium] Add a test for a render surface that the uses alpha channel.
https://bugs.webkit.org/show_bug.cgi?id=52766
* platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.checksum: Added.
* platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.png: Added.
* platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.txt: Added.
* platform/chromium/compositing/render-surface-alpha-blending.html: Added.
2011-01-19 Adrienne Walker <enne@google.com>
Reviewed by James Robinson.
[chromium] Composited render surfaces should allow writes to alpha channel.
https://bugs.webkit.org/show_bug.cgi?id=52766
Test: LayoutTests/platform/chromium/compositing
* platform/graphics/chromium/LayerRendererChromium.cpp:
(WebCore::LayerRendererChromium::drawLayers):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76299
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-01-20 Adrienne Walker <enne@google.com>
+
+ Reviewed by James Robinson.
+
+ [chromium] Add a test for a render surface that the uses alpha channel.
+ https://bugs.webkit.org/show_bug.cgi?id=52766
+
+ * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.checksum: Added.
+ * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.png: Added.
+ * platform/chromium-gpu/platform/chromium/compositing/render-surface-alpha-blending-expected.txt: Added.
+ * platform/chromium/compositing/render-surface-alpha-blending.html: Added.
+
2011-01-14 Jer Noble <jer.noble@apple.com>
Reviewed by Eric Carlson.
--- /dev/null
+f12f151e804c5ce584a4bdc588aa3c29
\ No newline at end of file
--- /dev/null
+layer at (0,0) size 800x600
+ RenderView at (0,0) size 800x600
+layer at (0,0) size 800x600
+ RenderBlock {HTML} at (0,0) size 800x600
+ RenderBody {BODY} at (8,8) size 784x584
+layer at (0,0) size 800x600
+ RenderBlock (positioned) {DIV} at (0,0) size 800x600 [bgcolor=#C80000]
+layer at (0,0) size 800x600
+ RenderBlock (positioned) {DIV} at (0,0) size 800x600 [bgcolor=#006400]
+layer at (0,0) size 800x1
+ RenderBlock {DIV} at (0,0) size 800x1
+ RenderHTMLCanvas {CANVAS} at (0,0) size 1x1
--- /dev/null
+<html>
+ <head>
+ <style>
+ #layer {
+ -webkit-transform:translateZ(0);
+ opacity: 0.75;
+ background-color: rgb(0, 100, 0);
+ }
+ #child {
+ -webkit-transform:translateZ(0);
+ }
+ #base {
+ background-color: rgb(200, 0, 0);
+ }
+
+ .fullpage {
+ position: fixed;
+ top: 0px;
+ left: 0px;
+ width: 100%;
+ height: 100%;
+ }
+ </style>
+ </head>
+ <body>
+ <div id="base" class="fullpage"></div>
+ <div id="layer" class="fullpage">
+ <!-- layer needs to have a child with content -->
+ <div id="child"><canvas width="1px" height="1px"></canvas></div>
+ </div>
+ </body>
+</html>
+2011-01-19 Adrienne Walker <enne@google.com>
+
+ Reviewed by James Robinson.
+
+ [chromium] Composited render surfaces should allow writes to alpha channel.
+ https://bugs.webkit.org/show_bug.cgi?id=52766
+
+ Test: LayoutTests/platform/chromium/compositing
+
+ * platform/graphics/chromium/LayerRendererChromium.cpp:
+ (WebCore::LayerRendererChromium::drawLayers):
+
2011-01-14 Jer Noble <jer.noble@apple.com>
Reviewed by Eric Carlson.
updateAndDrawRootLayer(tilePaint, scrollbarPaint, visibleRect, contentRect);
+ // Re-enable color writes to layers, which may be partially transparent.
+ m_context->colorMask(true, true, true, true);
+
// Set the root visible/content rects --- used by subsequent drawLayers calls.
m_rootVisibleRect = visibleRect;
m_rootContentRect = contentRect;