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

Unified Diff: ui/compositor/layer.cc

Issue 10414030: Add support for new WebKit::WebFilterOperation construction API behind ifdef (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index e4de7b364b82b8c5c609d1a0c3e50e7ed6588a80..23d7409c8a882d2e12a78ccaa178949d67ba688a 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -197,8 +197,13 @@ void Layer::SetOpacity(float opacity) {
void Layer::SetBackgroundBlur(int blur_radius)
{
WebKit::WebFilterOperations filters;
- if (blur_radius)
+ if (blur_radius) {
+#if WEBKIT_HAS_NEW_WEBFILTEROPERATION_API
+ filters.append(WebKit::WebFilterOperation::createBlurFilter(blur_radius));
+#else
filters.append(WebKit::WebBlurFilterOperation(blur_radius));
+#endif
+ }
web_layer_.setBackgroundFilters(filters);
background_blur_radius_ = blur_radius;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698