Bug 100159 - Allow tests to run with a tile cache, and optionally dump the tile cache via layerTreeAsText()
Summary: Allow tests to run with a tile cache, and optionally dump the tile cache via ...
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: 100189
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-23 14:38 PDT by Simon Fraser (smfr)
Modified: 2012-10-23 21:35 PDT (History)
9 users (show)

See Also:


Attachments
Patch (28.05 KB, patch)
2012-10-23 14:46 PDT, Simon Fraser (smfr)
no flags Details | Formatted Diff | Diff
Patch (28.05 KB, patch)
2012-10-23 14:47 PDT, Simon Fraser (smfr)
thorton: review+
webkit-ews: commit-queue-
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) 2012-10-23 14:38:15 PDT
Allow tests to run with a tile cache, and optionally dump the tile cache via layerTreeAsText()
Comment 1 Simon Fraser (smfr) 2012-10-23 14:46:28 PDT
Created attachment 170239 [details]
Patch
Comment 2 Simon Fraser (smfr) 2012-10-23 14:47:33 PDT
Created attachment 170240 [details]
Patch
Comment 3 Eric Seidel (no email) 2012-10-23 14:57:58 PDT
Seems reasonable to me.
Comment 4 Early Warning System Bot 2012-10-23 14:59:43 PDT
Comment on attachment 170240 [details]
Patch

Attachment 170240 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/14525111
Comment 5 Tim Horton 2012-10-23 15:04:45 PDT
Comment on attachment 170240 [details]
Patch

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

> Source/WebCore/ChangeLog:35
> +        * page/Frame.h:
> +        * platform/graphics/GraphicsLayer.cpp:
> +        (showGraphicsLayerTree):
> +        * platform/graphics/GraphicsLayer.h:
> +        (WebCore::GraphicsLayer::tiledBacking):
> +        * platform/graphics/TiledBacking.h:
> +        * platform/graphics/ca/GraphicsLayerCA.cpp:
> +        (WebCore::GraphicsLayerCA::tiledBacking):
> +        (WebCore::GraphicsLayerCA::dumpAdditionalProperties):
> +        * platform/graphics/ca/GraphicsLayerCA.h:
> +        (GraphicsLayerCA):
> +        * platform/graphics/ca/mac/TileCache.h:
> +        (WebCore::TileCache::tileCoverageRect):
> +        (TileCache):
> +        * platform/graphics/ca/mac/TileCache.mm:
> +        (WebCore::TileCache::computeTileCoverageRect):
> +        (WebCore::TileCache::revalidateTiles):
> +        * rendering/RenderLayerCompositor.cpp:
> +        (WebCore::RenderLayerCompositor::layerTreeAsText):
> +        * testing/Internals.cpp:
> +        (WebCore::Internals::layerTreeAsText):
> +        * testing/Internals.h:
> +        * testing/Internals.idl:

Dan would be sad that there aren’t comments here.

> Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:2526
> +    if (m_isPageTileCacheLayer && (behavior & LayerTreeAsTextIncludePageTileCache)) {

I assume there’s no reason to actually dump all of the tile layers?

> Tools/WebKitTestRunner/TestInvocation.cpp:148
> +    return strstr(pathOrURL, "tiled-drawing/") || strstr(pathOrURL, "tiled-drawing\\");

Is this what we want? So then we can have tiled-drawing subdirectories throughout the LayoutTests tree?

> Tools/WebKitTestRunner/TestInvocation.cpp:154
> +    WKRetainPtr<WKMutableDictionaryRef> viewOptions = adoptWK(WKMutableDictionaryCreate());

Does WKRetainPtr not have the nice constructor that takes AdoptWK as the first argument, and the object as the second?

> Tools/WebKitTestRunner/mac/PlatformWebViewMac.mm:111
> +    WKRetainPtr<WKStringRef> useTiledDrawingKey(AdoptWK, WKStringCreateWithUTF8CString("TiledDrawing"));

Apparently it does :P
Comment 6 Simon Fraser (smfr) 2012-10-23 15:22:45 PDT
http://trac.webkit.org/changeset/132276
Comment 7 WebKit Review Bot 2012-10-23 21:07:26 PDT
Re-opened since this is blocked by bug 100189
Comment 8 Csaba Osztrogonác 2012-10-23 21:16:03 PDT
Rolled out, because it broke the Qt build - http://trac.webkit.org/changeset/132298

Please don't break the build in the future and keep the contributing rules:
https://www.webkit.org/coding/contributing.html
"Keeping the tree green
...
You can watch the tree at build.webkit.org to make sure your patch builds and passes tests on all platforms.
...
Your change must at least compile on all platforms."

EWS bots and buildbots are your friends.
Comment 9 Simon Fraser (smfr) 2012-10-23 21:29:42 PDT
Was rolled out in error. Ossy is rolling back in.
Comment 10 Csaba Osztrogonác 2012-10-23 21:35:11 PDT
Relanded in https://trac.webkit.org/changeset/132301.

I'm so sorry for blaming you, r133275 and not r133276 was the culprit,
but the red EWS and the red tree on same revision confused me. I'll
be more careful in the future and will check the build logs better.