Bug 101952 - [Chromium] pass all css3/filters tests in the SkImageFilter DAG path
Summary: [Chromium] pass all css3/filters tests in the SkImageFilter DAG path
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Stephen White
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-12 10:58 PST by Stephen White
Modified: 2012-11-13 12:39 PST (History)
4 users (show)

See Also:


Attachments
Patch (11.45 KB, patch)
2012-11-12 11:06 PST, Stephen White
no flags Details | Formatted Diff | Diff
Patch (11.42 KB, patch)
2012-11-12 17:15 PST, Stephen White
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen White 2012-11-12 10:58:05 PST
We should pass all the css3/filters tests when using the SkImageFilter DAG path.  Currently we run it only when there's a reference filter in the chain.
Comment 1 Stephen White 2012-11-12 11:06:53 PST
Created attachment 173673 [details]
Patch
Comment 2 James Robinson 2012-11-12 16:22:11 PST
Comment on attachment 173673 [details]
Patch

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

> Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.cpp:62
> +bool DropShadowImageFilter::onFilterImage(Proxy*proxy, const SkBitmap& source, const SkMatrix& matrix, SkBitmap* result, SkIPoint* loc) SK_OVERRIDE {

It's unusual to see any sort of OVERRIDE on the implementation - do you really need this?

space between 'Proxy*' and 'proxy'

> Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.h:38
> +    DropShadowImageFilter(SkFlattenableReadBuffer&);

we'd normally use explicit here

> Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.h:39
> +    virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;

Is SK_OVERRIDE the same as OVERRIDE? Can we just use the WebKit macros?

> Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.h:45
> +    typedef SkSingleInputImageFilter INHERITED;

What's this? We would normally reserve ALLCAPS for macros in WebKit code
Comment 3 Stephen White 2012-11-12 17:15:33 PST
(In reply to comment #2)
> (From update of attachment 173673 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=173673&action=review
> 
> > Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.cpp:62
> > +bool DropShadowImageFilter::onFilterImage(Proxy*proxy, const SkBitmap& source, const SkMatrix& matrix, SkBitmap* result, SkIPoint* loc) SK_OVERRIDE {
> 
> It's unusual to see any sort of OVERRIDE on the implementation - do you really need this?

Whoops, thanks, fixed.

> space between 'Proxy*' and 'proxy'

Done.

> > Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.h:38
> > +    DropShadowImageFilter(SkFlattenableReadBuffer&);
> 
> we'd normally use explicit here

Done.

> > Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.h:39
> > +    virtual void flatten(SkFlattenableWriteBuffer&) const SK_OVERRIDE;
> 
> Is SK_OVERRIDE the same as OVERRIDE? Can we just use the WebKit macros?

Done.

> > Source/WebCore/platform/graphics/filters/skia/DropShadowImageFilter.h:45
> > +    typedef SkSingleInputImageFilter INHERITED;
> 
> What's this? We would normally reserve ALLCAPS for macros in WebKit code

Removed.  (This file started life as a Skia patch, in case it isn't obvious).
Comment 4 Stephen White 2012-11-12 17:15:43 PST
Created attachment 173765 [details]
Patch
Comment 5 WebKit Review Bot 2012-11-13 12:39:56 PST
Comment on attachment 173765 [details]
Patch

Clearing flags on attachment: 173765

Committed r134467: <http://trac.webkit.org/changeset/134467>
Comment 6 WebKit Review Bot 2012-11-13 12:39:58 PST
All reviewed patches have been landed.  Closing bug.