Bug 128553 - Show a debug tile map indicator for UI-side compositing
Summary: Show a debug tile map indicator for UI-side compositing
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: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 14:23 PST by Simon Fraser (smfr)
Modified: 2014-02-10 16:20 PST (History)
3 users (show)

See Also:


Attachments
Patch (17.68 KB, patch)
2014-02-10 14:30 PST, Simon Fraser (smfr)
thorton: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2014-02-10 14:23:49 PST
Show a debug tile map indicator for UI-side compositing
Comment 1 Simon Fraser (smfr) 2014-02-10 14:30:33 PST
Created attachment 223749 [details]
Patch
Comment 2 Tim Horton 2014-02-10 15:28:01 PST
Comment on attachment 223749 [details]
Patch

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

> Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:188
> +        // FIXME: get the correct scroll position;

capitals and periods

> Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:210
> +    m_tileMapHostLayer.get().name = @"Tile map host";

[...] instead of .get() in lots of places

> Source/WebKit2/UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:221
> +        const CGFloat components[] = { 1, 1, 1, 0.6 };
> +        RetainPtr<CGColorRef> color = adoptCF(CGColorCreate(colorSpace.get(), components));
> +        m_tileMapHostLayer.get().backgroundColor = color.get();

I wonder if using the color cache would be neater.

> Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.h:51
> +    void setIsDebugLayerTreeHost(bool flag = true) { m_isDebugLayerTreeHost = flag; }

default argument value? weird!

> Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.mm:133
> +            layer = adoptNS([[CALayer alloc] init]);

maybe we should give this a background color?
Comment 3 Simon Fraser (smfr) 2014-02-10 16:20:35 PST
https://trac.webkit.org/r163837