Bug 104128 - Coordinated Graphics: Enable support for setContentsToBackgroundColor
Summary: Coordinated Graphics: Enable support for setContentsToBackgroundColor
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Noam Rosenthal
URL:
Keywords:
Depends on: 103786
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-05 08:44 PST by Noam Rosenthal
Modified: 2012-12-05 17:24 PST (History)
6 users (show)

See Also:


Attachments
Patch (12.26 KB, patch)
2012-12-05 09:01 PST, Noam Rosenthal
no flags Details | Formatted Diff | Diff
Patch (12.01 KB, patch)
2012-12-05 09:31 PST, Noam Rosenthal
no flags Details | Formatted Diff | Diff
Patch (165.84 KB, patch)
2012-12-05 16:28 PST, Noam Rosenthal
no flags Details | Formatted Diff | Diff
Patch (11.39 KB, patch)
2012-12-05 16:53 PST, Noam Rosenthal
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Noam Rosenthal 2012-12-05 08:44:09 PST
Coordinated Graphics: Enable support for setContentsToBackgroundColor
Comment 1 Noam Rosenthal 2012-12-05 09:01:38 PST
Created attachment 177765 [details]
Patch
Comment 2 Noam Rosenthal 2012-12-05 09:02:48 PST
This would enable us to support direct compositing of background colors, see 103786.
Comment 3 Kenneth Rohde Christiansen 2012-12-05 09:05:14 PST
Comment on attachment 177765 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=177765&action=review

> Source/WebKit2/ChangeLog:9
> +
> +        Enable setContentsToBackgroundColor in CoordinatedGraphicsLayer, and pass it through to the UI process.
> +

Better explain what it actually means, what it is used for

> Source/WebKit2/ChangeLog:35
> +        (WebCore::CoordinatedGraphicsLayer::setContentsToBackgroundColor):
> +        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
> +        (CoordinatedGraphicsLayer):
> +
> +2012-11-30  No'am Rosenthal  <noam@webkit.org>
> +
> +        Use background color for GraphicsLayers when applicable
> +        https://bugs.webkit.org/show_bug.cgi?id=103786
> +
> +        Reviewed by NOBODY (OOPS!).
> +
> +        Enable setContentsToBackgroundColor for coordinated graphics.
> +
> +        * Shared/WebLayerTreeInfo.h:
> +        (WebLayerInfo):
> +        * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
> +        (WebKit::LayerTreeRenderer::setLayerState):
> +        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
> +        (WebCore::CoordinatedGraphicsLayer::setContentsToBackgroundColor):
> +        * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.h:
> +        (CoordinatedGraphicsLayer):

why two change log entries?
Comment 4 Noam Rosenthal 2012-12-05 09:31:18 PST
Created attachment 177778 [details]
Patch
Comment 5 Noam Rosenthal 2012-12-05 16:28:58 PST
Created attachment 177857 [details]
Patch
Comment 6 Noam Rosenthal 2012-12-05 16:33:31 PST
Comment on attachment 177857 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=177857&action=review

> LayoutTests/compositing/overflow/resize-painting-expected.txt:-10
> -          (drawsContent 1)

This layer actually doesn't draw content; I'm not sure why the expected results have a drawsContent flag.
Comment 7 Noam Rosenthal 2012-12-05 16:49:14 PST
Comment on attachment 177857 [details]
Patch

Oops, wrong patch.
Comment 8 Noam Rosenthal 2012-12-05 16:53:20 PST
Created attachment 177870 [details]
Patch
Comment 9 WebKit Review Bot 2012-12-05 17:24:43 PST
Comment on attachment 177870 [details]
Patch

Clearing flags on attachment: 177870

Committed r136781: <http://trac.webkit.org/changeset/136781>
Comment 10 WebKit Review Bot 2012-12-05 17:24:47 PST
All reviewed patches have been landed.  Closing bug.