Bug 149426 - [Win] Show tiled drawing debug overlay on Windows
Summary: [Win] Show tiled drawing debug overlay on Windows
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-21 15:43 PDT by Brent Fulgham
Modified: 2015-09-21 17:07 PDT (History)
3 users (show)

See Also:


Attachments
Patch (23.19 KB, patch)
2015-09-21 16:03 PDT, Brent Fulgham
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2015-09-21 15:43:51 PDT
Add a debug menu option to MiniBrowser to activate the tiled drawing debug overlay. This will only be visible when the page is in accelerated compositing mode.
Comment 1 Brent Fulgham 2015-09-21 16:03:58 PDT
Created attachment 261697 [details]
Patch
Comment 2 Dean Jackson 2015-09-21 16:10:57 PDT
Comment on attachment 261697 [details]
Patch

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

> Source/WebCore/platform/graphics/ca/PlatformCALayer.cpp:99
> +void PlatformCALayer::drawTextAtPoint(CGContextRef context, CGFloat x, CGFloat y, CGPoint scale, CGFloat fontSize, const char* text, size_t length) const

Shouldn't a scale be a CGSize?

> Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp:125
>  CACFLayerTreeHost::CACFLayerTreeHost()
> -    : m_client(0)
> -    , m_rootLayer(PlatformCALayerWin::create(PlatformCALayer::LayerTypeRootLayer, 0))
> -    , m_window(0)
> -    , m_shouldFlushPendingGraphicsLayerChanges(false)
> -    , m_isFlushingLayerChanges(false)
> -#if !ASSERT_DISABLED
> -    , m_state(WindowNotSet)
> -#endif
> +    : m_rootLayer(PlatformCALayerWin::create(PlatformCALayer::LayerTypeRootLayer, nullptr))

Nice!
Comment 3 Brent Fulgham 2015-09-21 16:50:27 PDT
Comment on attachment 261697 [details]
Patch

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

>> Source/WebCore/platform/graphics/ca/PlatformCALayer.cpp:99
>> +void PlatformCALayer::drawTextAtPoint(CGContextRef context, CGFloat x, CGFloat y, CGPoint scale, CGFloat fontSize, const char* text, size_t length) const
> 
> Shouldn't a scale be a CGSize?

Sure! I'll change to that.
Comment 4 Brent Fulgham 2015-09-21 17:07:57 PDT
Committed r190091: <http://trac.webkit.org/changeset/190091>