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; |