OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "web_layer_impl.h" | 6 #include "web_layer_impl.h" |
7 | 7 |
8 #include "SkMatrix44.h" | 8 #include "SkMatrix44.h" |
9 #ifdef LOG | 9 #ifdef LOG |
10 #undef LOG | 10 #undef LOG |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 void WebLayerImpl::setFilters(const WebFilterOperations& filters) | 265 void WebLayerImpl::setFilters(const WebFilterOperations& filters) |
266 { | 266 { |
267 m_layer->setFilters(filters); | 267 m_layer->setFilters(filters); |
268 } | 268 } |
269 | 269 |
270 void WebLayerImpl::setBackgroundFilters(const WebFilterOperations& filters) | 270 void WebLayerImpl::setBackgroundFilters(const WebFilterOperations& filters) |
271 { | 271 { |
272 m_layer->setBackgroundFilters(filters); | 272 m_layer->setBackgroundFilters(filters); |
273 } | 273 } |
274 | 274 |
| 275 void WebLayerImpl::setFilter(SkImageFilter* filter) |
| 276 { |
| 277 m_layer->setFilter(filter); |
| 278 } |
| 279 |
275 void WebLayerImpl::setDebugBorderColor(const WebColor& color) | 280 void WebLayerImpl::setDebugBorderColor(const WebColor& color) |
276 { | 281 { |
277 m_layer->setDebugBorderColor(color); | 282 m_layer->setDebugBorderColor(color); |
278 } | 283 } |
279 | 284 |
280 void WebLayerImpl::setDebugBorderWidth(float width) | 285 void WebLayerImpl::setDebugBorderWidth(float width) |
281 { | 286 { |
282 m_layer->setDebugBorderWidth(width); | 287 m_layer->setDebugBorderWidth(width); |
283 } | 288 } |
284 | 289 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 { | 437 { |
433 m_layer->setLayerScrollClient(scrollClient); | 438 m_layer->setLayerScrollClient(scrollClient); |
434 } | 439 } |
435 | 440 |
436 Layer* WebLayerImpl::layer() const | 441 Layer* WebLayerImpl::layer() const |
437 { | 442 { |
438 return m_layer.get(); | 443 return m_layer.get(); |
439 } | 444 } |
440 | 445 |
441 } // namespace WebKit | 446 } // namespace WebKit |
OLD | NEW |