Skip to content
This repository has been archived by the owner. It is now read-only.

Add bindings to the filter node pipeline, and upgrade Skia #118

Merged
merged 1 commit into from Dec 7, 2014

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Dec 5, 2014

gfx::DrawTarget *gfxDrawTarget = static_cast<gfx::DrawTarget*>(aDrawTarget);
gfx::FilterType gfxFilterType = static_cast<gfx::FilterType>(aType);
RefPtr<gfx::FilterNode> gfxFilterNode = gfxDrawTarget->CreateFilter(gfxFilterType);
gfxFilterNode->AddRef();

This comment has been minimized.

@mrobinson

mrobinson Dec 5, 2014

Member

It looks like TemporaryRef adds a reference, so couldn't this just be:

return gfxDrawTarget->CreateFilter(gfxFilterType).drop()?

@mrobinson
Copy link
Member

mrobinson commented Dec 5, 2014

Looks good to me modulo that tiny cleanup suggestion, if it's valid.

@pcwalton pcwalton force-pushed the pcwalton:filters branch from ec44003 to 94ffb62 Dec 7, 2014
pcwalton added a commit that referenced this pull request Dec 7, 2014
Add bindings to the filter node pipeline, and upgrade Skia
@pcwalton pcwalton merged commit 4529394 into servo:master Dec 7, 2014
@pcwalton pcwalton deleted the pcwalton:filters branch Dec 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.