Commit f95de30a authored by enne@google.com's avatar enne@google.com
Browse files

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-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
parent 760a8d1a
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> 2011-01-14 Jer Noble <jer.noble@apple.com>
   
Reviewed by Eric Carlson. Reviewed by Eric Carlson.
......
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
<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> 2011-01-14 Jer Noble <jer.noble@apple.com>
   
Reviewed by Eric Carlson. Reviewed by Eric Carlson.
...@@ -263,6 +263,9 @@ void LayerRendererChromium::drawLayers(const IntRect& visibleRect, const IntRect ...@@ -263,6 +263,9 @@ void LayerRendererChromium::drawLayers(const IntRect& visibleRect, const IntRect
updateAndDrawRootLayer(tilePaint, scrollbarPaint, visibleRect, contentRect); 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. // Set the root visible/content rects --- used by subsequent drawLayers calls.
m_rootVisibleRect = visibleRect; m_rootVisibleRect = visibleRect;
m_rootContentRect = contentRect; m_rootContentRect = contentRect;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment