WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
73440
[GTK] Add TextureMapperCairo boilerplate implementation
https://bugs.webkit.org/show_bug.cgi?id=73440
Summary
[GTK] Add TextureMapperCairo boilerplate implementation
Alejandro G. Castro
Reported
2011-11-30 06:14:52 PST
Add the initial compilation parts and some of the common glue for the TextureMapper in GTK.
Attachments
Proposed patch
(21.38 KB, patch)
2011-11-30 10:02 PST
,
Alejandro G. Castro
no flags
Details
Formatted Diff
Diff
Proposed patch
(21.39 KB, patch)
2011-11-30 10:12 PST
,
Alejandro G. Castro
no flags
Details
Formatted Diff
Diff
Proposed patch
(20.92 KB, patch)
2011-11-30 11:27 PST
,
Alejandro G. Castro
mrobinson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Alejandro G. Castro
Comment 1
2011-11-30 10:02:44 PST
Created
attachment 117207
[details]
Proposed patch
WebKit Review Bot
Comment 2
2011-11-30 10:05:42 PST
Attachment 117207
[details]
did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1 Source/WebCore/platform/graphics/cairo/TextureMapperCairo.cpp:32: More than one command on the same line in if [whitespace/parens] [4] Total errors found: 1 in 13 files If any of these errors are false positives, please file a bug against check-webkit-style.
Martin Robinson
Comment 3
2011-11-30 10:11:07 PST
Comment on
attachment 117207
[details]
Proposed patch View in context:
https://bugs.webkit.org/attachment.cgi?id=117207&action=review
Nice. I have a couple quick comments...
> Source/WebCore/platform/graphics/cairo/TextureMapperCairo.cpp:6 > + Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) > + Copyright (C) 2011 Igalia S.L. > + > + This library is free software; you can redistribute it and/or > + modify it under the terms of the GNU Library General Public
Do you mind putting the asterisks on the side here when landing? It's typical to do that in WebKit.
> Source/WebCore/platform/graphics/cairo/TextureMapperCairo.cpp:32 > + if (m_context) delete m_context;
This should be two lines.
> Source/WebCore/platform/graphics/cairo/TextureMapperCairo.h:4 > + Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) > + Copyright (C) 2011 Igalia S.L. > +
Same thing here.
> Source/WebKit/gtk/WebCoreSupport/ChromeClientGtk.cpp:922 > + if (webViewAllowsAcceleratedCompositing(m_webView)) > + return AllTriggers; > +
You should just do something like: I'm surprised retun 0 doesn't return an error here... #if !USE(ACCELERATED_COMPOSITING) return 0; #else ... #endif
> Source/WebKit/gtk/webkit/webkitwebview.cpp:4877 > +void webViewSetRootGraphicsLayer(WebKitWebView* webView, GraphicsLayer* graphicsLayer)
In WebKit1 we use the web_view_set_root_graphics_layer style.
> Source/WebKit/gtk/webkit/webkitwebview.cpp:4882 > +void webViewMarkForSync(WebKitWebView* webView, gboolean scheduleSync)
I would say it's best to use bool here instead of gboolean.
> Source/WebKit/gtk/webkit/webkitwebview.cpp:4895 > +gboolean webViewAllowsAcceleratedCompositing(WebKitWebView* webView) > +{ > +#if USE(ACCELERATED_COMPOSITING) > + return TRUE; > +#else > + return FALSE; > +#endif > +}
Just put this inline instead of making it an extra function.
> Source/WebKit/gtk/webkit/webkitwebviewprivate.h:33 > +
You can remove this extra line.
Alejandro G. Castro
Comment 4
2011-11-30 10:12:51 PST
Created
attachment 117212
[details]
Proposed patch Sorry I thought I had changed this.
Alejandro G. Castro
Comment 5
2011-11-30 11:27:38 PST
Created
attachment 117236
[details]
Proposed patch Thanks for the review! New version.
Alejandro G. Castro
Comment 6
2011-11-30 13:39:18 PST
Thanks! Landed
http://trac.webkit.org/changeset/101548
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug