RESOLVED FIXED 195094
[CoordinatedGraphics] Unify all LayerTreeHost classes
https://bugs.webkit.org/show_bug.cgi?id=195094
Summary [CoordinatedGraphics] Unify all LayerTreeHost classes
Carlos Garcia Campos
Reported 2019-02-27 03:22:19 PST
There's no reason to have 3 classes, since currently LayerTreeHost is only used by coordinated graphics based ports.
Attachments
Patch (54.04 KB, patch)
2019-02-27 03:24 PST, Carlos Garcia Campos
no flags
Patch (59.90 KB, patch)
2019-02-27 04:12 PST, Carlos Garcia Campos
no flags
Patch (53.83 KB, patch)
2019-02-27 04:49 PST, Carlos Garcia Campos
no flags
Patch (74.53 KB, patch)
2019-02-27 19:05 PST, Fujii Hironori
no flags
Patch for landing (62.57 KB, patch)
2019-02-28 03:50 PST, Carlos Garcia Campos
no flags
Patch for landing (61.13 KB, patch)
2019-02-28 04:26 PST, Carlos Garcia Campos
no flags
Patch for landing (61.92 KB, patch)
2019-02-28 04:36 PST, Carlos Garcia Campos
no flags
Carlos Garcia Campos
Comment 1 2019-02-27 03:24:04 PST
Carlos Garcia Campos
Comment 2 2019-02-27 04:12:43 PST
EWS Watchlist
Comment 3 2019-02-27 04:15:07 PST
Attachment 363085 [details] did not pass style-queue: ERROR: Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp:122: Tab found; better to use spaces [whitespace/tab] [1] ERROR: Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp:299: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/AcceleratedDrawingArea.cpp:311: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:142: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:151: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:161: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:167: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:191: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/Shared/CoordinatedGraphics/threadedcompositor/ThreadedCompositor.cpp:305: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/WebProcess/WebPage/WebPage.cpp:6377: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/gtk/WaylandCompositor.cpp:150: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/gtk/WaylandCompositor.cpp:155: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/gtk/WaylandCompositor.cpp:345: Extra space before ( in function call [whitespace/parens] [4] ERROR: Source/WebKit/UIProcess/gtk/WaylandCompositor.cpp:559: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 14 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Carlos Garcia Campos
Comment 4 2019-02-27 04:45:34 PST
Comment on attachment 363085 [details] Patch Oops, wrong patch
Carlos Garcia Campos
Comment 5 2019-02-27 04:49:08 PST
Carlos Garcia Campos
Comment 6 2019-02-27 06:01:51 PST
I don't understand the windows build failure
Don Olmstead
Comment 7 2019-02-27 11:01:51 PST
(In reply to Carlos Garcia Campos from comment #6) > I don't understand the windows build failure I'll take a look at it now. Just a heads up we're working on enabling coordinated graphics in https://bugs.webkit.org/show_bug.cgi?id=186364 and there's also the matter of https://bugs.webkit.org/show_bug.cgi?id=186444
Don Olmstead
Comment 8 2019-02-27 11:58:36 PST
LayerTreeHost has a #if USE(COORDINATED_GRAPHICS_THREADED) around it. That's not enabled on WinCairo currently. As mentioned we're working through that on a different bug.
Don Olmstead
Comment 9 2019-02-27 17:07:41 PST
Carlos and Zan one thing about this patch I have a feeling about is that GTK is going to break without OpenGL support. https://github.com/WebKit/webkit/blob/master/Source/cmake/OptionsGTK.cmake#L293-L327 So you might also want to check that out before it lands.
Fujii Hironori
Comment 10 2019-02-27 17:29:51 PST
Comment on attachment 363086 [details] Patch Thank you for giving us heads-up about WinCairo issue. I'm going to look into it today.
Fujii Hironori
Comment 11 2019-02-27 19:05:41 PST
Fujii Hironori
Comment 12 2019-02-27 19:11:02 PST
Comment on attachment 363180 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=363180&action=review > Source/WebKit/ChangeLog:3 > + [CoordinatedGraphics] Unify all LayerTreeHost classes Why don't you unify AcceleratedDrawingArea and DrawingAreaImpl? DrawingAreaImpl should be renamed to DrawingAreaTextureMapper, then DrawingAreaCoordinatedGraphics after WinCairo will switch to CoordinatedGraphics.
Carlos Garcia Campos
Comment 13 2019-02-28 02:02:01 PST
(In reply to Fujii Hironori from comment #11) > Created attachment 363180 [details] > Patch Thanks!
Carlos Garcia Campos
Comment 14 2019-02-28 03:50:44 PST
Created attachment 363216 [details] Patch for landing This should also fix the GTK build with OpenGL disabled.
Carlos Garcia Campos
Comment 15 2019-02-28 04:26:22 PST
Created attachment 363217 [details] Patch for landing
Carlos Garcia Campos
Comment 16 2019-02-28 04:36:51 PST
Created attachment 363218 [details] Patch for landing
Carlos Garcia Campos
Comment 17 2019-02-28 05:17:52 PST
Carlos Garcia Campos
Comment 18 2019-02-28 08:46:45 PST
(In reply to Fujii Hironori from comment #12) > Comment on attachment 363180 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=363180&action=review > > > Source/WebKit/ChangeLog:3 > > + [CoordinatedGraphics] Unify all LayerTreeHost classes > > Why don't you unify AcceleratedDrawingArea and DrawingAreaImpl? > DrawingAreaImpl should be renamed to DrawingAreaTextureMapper, then > DrawingAreaCoordinatedGraphics after WinCairo will switch to > CoordinatedGraphics. Sure, see https://bugs.webkit.org/show_bug.cgi?id=195167 But I used DrawingAreaCoordinatedGraphics directly.
Note You need to log in before you can comment on or make changes to this bug.