void GraphicsLayerChromium::setBackgroundFilters(const FilterOperations& filters) { WebFilterOperations webFilters; if (!copyWebCoreFilterOperationsToWebFilterOperations(filters, webFilters)) return; m_layer->layer()->setBackgroundFilters(webFilters); }
bool GraphicsLayerChromium::setFilters(const FilterOperations& filters) { WebFilterOperations webFilters; if (!copyWebCoreFilterOperationsToWebFilterOperations(filters, webFilters)) return false; m_layer.setFilters(webFilters); return GraphicsLayer::setFilters(filters); }
bool GraphicsLayerChromium::setFilters(const FilterOperations& filters) { WebFilterOperations webFilters; if (!copyWebCoreFilterOperationsToWebFilterOperations(filters, webFilters)) { // Make sure the filters are removed from the platform layer, as they are // going to fallback to software mode. m_layer->layer()->setFilters(WebFilterOperations()); GraphicsLayer::setFilters(FilterOperations()); return false; } m_layer->layer()->setFilters(webFilters); return GraphicsLayer::setFilters(filters); }