WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 92685
[BlackBerry] Enable CSS Filter Effects
https://bugs.webkit.org/show_bug.cgi?id=92685
Summary
[BlackBerry] Enable CSS Filter Effects
Joshua Netterfield
Reported
2012-07-30 15:14:35 PDT
BlackBerry does not currently support hardware-accelerated CSS filter effects. This bug covers neither CSS reference (SVG) filters, nor CSS custom (shader) filters.
Attachments
Patch
(60.03 KB, patch)
2012-07-31 08:37 PDT
,
Joshua Netterfield
no flags
Details
Formatted Diff
Diff
Patch
(59.91 KB, patch)
2012-07-31 09:20 PDT
,
Joshua Netterfield
no flags
Details
Formatted Diff
Diff
Patch
(60.70 KB, patch)
2012-07-31 09:34 PDT
,
Joshua Netterfield
no flags
Details
Formatted Diff
Diff
Patch
(60.68 KB, patch)
2012-07-31 10:11 PDT
,
Joshua Netterfield
no flags
Details
Formatted Diff
Diff
Patch
(60.61 KB, patch)
2012-07-31 11:25 PDT
,
Joshua Netterfield
no flags
Details
Formatted Diff
Diff
Patch
(60.93 KB, patch)
2012-07-31 11:41 PDT
,
Joshua Netterfield
no flags
Details
Formatted Diff
Diff
Show Obsolete
(5)
View All
Add attachment
proposed patch, testcase, etc.
Joshua Netterfield
Comment 1
2012-07-31 08:37:06 PDT
Created
attachment 155548
[details]
Patch
Gyuyoung Kim
Comment 2
2012-07-31 08:50:10 PDT
Comment on
attachment 155548
[details]
Patch
Attachment 155548
[details]
did not pass efl-ews (efl): Output:
http://queues.webkit.org/results/13386881
Antonio Gomes
Comment 3
2012-07-31 09:02:15 PDT
Comment on
attachment 155548
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=155548&action=review
nice! please fix the style nits and minor issues. r-'ing since it needs another iteration to fix EFL anyways.
> Source/WebCore/platform/graphics/blackberry/GraphicsLayerBlackBerry.h:83 > + virtual bool setFilters(const FilterOperations &);
the 'bool' return type here is very unclear. I imagine this class implements this method which is inherited from someone else?
> Source/WebCore/platform/graphics/blackberry/LayerCompositingThread.h:215 > + bool filterOperationsChanged() { return m_filterOperationsChanged; }
const
> Source/WebCore/platform/graphics/blackberry/LayerCompositingThread.h:218 > + WTF::Vector<RefPtr<LayerFilterRendererAction> > filterActions() { return m_filterActions; }
const
> Source/WebCore/platform/graphics/blackberry/LayerCompositingThread.h:266 > + bool m_filterOperationsChanged;
you should manually default initialize it in the ctor.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:70 > + default: > + return -1; > + }
does it cover all cases of the enum? if you ASSERT_NOT_REACHED here, please.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:89 > +Uniform1f::Uniform1f(int c_location, float c_val) : Uniformf(c_location), m_val(c_val)
wrong style, new line here.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:138 > +{ > + > +}
unneeded extra line.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:142 > +LayerFilterRendererAction::~LayerFilterRendererAction() > +{ > +}
omit this. let the compiler private one to us.
Joshua Netterfield
Comment 4
2012-07-31 09:20:44 PDT
Created
attachment 155565
[details]
Patch
Joshua Netterfield
Comment 5
2012-07-31 09:24:02 PDT
Please disregard the previous patch.
Joshua Netterfield
Comment 6
2012-07-31 09:34:19 PDT
Created
attachment 155567
[details]
Patch
Joshua Netterfield
Comment 7
2012-07-31 10:11:33 PDT
Created
attachment 155578
[details]
Patch
Joshua Netterfield
Comment 8
2012-07-31 10:11:52 PDT
Got rid of WTF:: prefixes.
Rob Buis
Comment 9
2012-07-31 10:35:49 PDT
Comment on
attachment 155578
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=155578&action=review
Looks good, one more iteration needed.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:371 > + for (int i = 0;i < LayerData::NumberOfCSSFilterShaders; ++i)
Add a space after i = 0;
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.h:98 > + // see the ping-pong note in LayerFilterRenderer::applyActions
Not completely WebKit style comments.
> Source/WebCore/platform/graphics/blackberry/LayerWebKitThread.h:102 > + void setFilters(const FilterOperations& filters) { m_filters = filters; m_filtersChanged = 1; setNeedsCommit(); }
Inconsistent use of m_filtersChanged, setting to 1 and false.
> ChangeLog:11 > + * Source/cmakeconfig.h.cmake: Acknowldge CSS filter effects
Typo Acknowldge
Arvid Nilsson
Comment 10
2012-07-31 10:42:15 PDT
Comment on
attachment 155578
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=155578&action=review
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.cpp:76 > + , m_refCount(1)
Now that Uniformf is RefCounted, you can remove m_refCount =)
Joshua Netterfield
Comment 11
2012-07-31 11:25:54 PDT
Created
attachment 155589
[details]
Patch
Rob Buis
Comment 12
2012-07-31 11:37:30 PDT
Comment on
attachment 155589
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=155589&action=review
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.h:100 > + bool shouldPushSnapshot() { return m_pushSnapshot; }
Could be const.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.h:101 > + void setPushSnapshot() { m_pushSnapshot = 1; }
Better use true.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.h:103 > + bool shouldPopSnapshot() { return m_popSnapshot; }
Ditto.
> Source/WebCore/platform/graphics/blackberry/LayerFilterRenderer.h:104 > + void setPopSnapshot() { m_popSnapshot = 1; }
Etcetera.
Joshua Netterfield
Comment 13
2012-07-31 11:41:59 PDT
Created
attachment 155596
[details]
Patch
Rob Buis
Comment 14
2012-07-31 11:43:01 PDT
Comment on
attachment 155596
[details]
Patch Good work!
WebKit Review Bot
Comment 15
2012-07-31 12:52:52 PDT
Comment on
attachment 155596
[details]
Patch Clearing flags on attachment: 155596 Committed
r124242
: <
http://trac.webkit.org/changeset/124242
>
WebKit Review Bot
Comment 16
2012-07-31 12:52:58 PDT
All reviewed patches have been landed. Closing bug.
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