Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3959)

Unified Diff: cc/output/software_renderer.cc

Issue 24090003: Enable general CSS filters in the software compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/test/data/blue_yellow_filter_chain.png » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/software_renderer.cc
diff --git a/cc/output/software_renderer.cc b/cc/output/software_renderer.cc
index 38d65b75cd00ef32cf4d915f3616a1025480a283..7dc4f798422c1b2579a8a4395d982c4d6a7d071b 100644
--- a/cc/output/software_renderer.cc
+++ b/cc/output/software_renderer.cc
@@ -437,11 +437,10 @@ void SoftwareRenderer::DrawRenderPassQuad(const DrawingFrame* frame,
shader->setLocalMatrix(content_mat);
current_paint_.setShader(shader.get());
- // TODO(ajuma): Remove this condition once general CSS filters are working
- // correctly (http://crbug.com/160302), and add corresponding pixel tests.
- if (quad->filters.HasReferenceFilter()) {
+ if (!quad->filters.IsEmpty()) {
skia::RefPtr<SkImageFilter> filter = RenderSurfaceFilters::BuildImageFilter(
quad->filters, content_texture->size());
+ // TODO(ajuma): Pass the quad's rect origin when applying the filter.
ajuma 2013/09/11 15:59:45 This is why ImageFilterClipped pixel test doesn't
Stephen White 2013/09/11 16:48:06 It should just be a matter of getting the correct
slavi 2013/09/13 18:53:20 AFAIK (I wrote the code) masks + filters do work c
ajuma 2013/10/15 19:36:20 Done.
if (filter)
current_paint_.setImageFilter(filter.get());
}
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/test/data/blue_yellow_filter_chain.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698