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

Side by Side Diff: Source/core/rendering/RenderLayer.cpp

Issue 644713004: Further cleanup in FilterEffectRenderer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove inverseScale() per review. Remove useless #includes. Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 2696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2707 FilterOperations RenderLayer::computeFilterOperations(const RenderStyle* style) 2707 FilterOperations RenderLayer::computeFilterOperations(const RenderStyle* style)
2708 { 2708 {
2709 const FilterOperations& filters = style->filter(); 2709 const FilterOperations& filters = style->filter();
2710 if (filters.hasReferenceFilter()) { 2710 if (filters.hasReferenceFilter()) {
2711 for (size_t i = 0; i < filters.size(); ++i) { 2711 for (size_t i = 0; i < filters.size(); ++i) {
2712 FilterOperation* filterOperation = filters.operations().at(i).get(); 2712 FilterOperation* filterOperation = filters.operations().at(i).get();
2713 if (filterOperation->type() != FilterOperation::REFERENCE) 2713 if (filterOperation->type() != FilterOperation::REFERENCE)
2714 continue; 2714 continue;
2715 ReferenceFilterOperation* referenceOperation = toReferenceFilterOper ation(filterOperation); 2715 ReferenceFilterOperation* referenceOperation = toReferenceFilterOper ation(filterOperation);
2716 // FIXME: Cache the ReferenceFilter if it didn't change. 2716 // FIXME: Cache the ReferenceFilter if it didn't change.
2717 RefPtr<ReferenceFilter> referenceFilter = ReferenceFilter::create(); 2717 RefPtr<ReferenceFilter> referenceFilter = ReferenceFilter::create(st yle->effectiveZoom());
2718 float zoom = style->effectiveZoom();
2719 referenceFilter->setAbsoluteTransform(AffineTransform().scale(zoom, zoom));
2720 referenceFilter->setLastEffect(ReferenceFilterBuilder::build(referen ceFilter.get(), renderer(), referenceFilter->sourceGraphic(), 2718 referenceFilter->setLastEffect(ReferenceFilterBuilder::build(referen ceFilter.get(), renderer(), referenceFilter->sourceGraphic(),
2721 referenceOperation)); 2719 referenceOperation));
2722 referenceOperation->setFilter(referenceFilter.release()); 2720 referenceOperation->setFilter(referenceFilter.release());
2723 } 2721 }
2724 } 2722 }
2725 2723
2726 return filters; 2724 return filters;
2727 } 2725 }
2728 2726
2729 void RenderLayer::updateOrRemoveFilterClients() 2727 void RenderLayer::updateOrRemoveFilterClients()
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2847 } 2845 }
2848 } 2846 }
2849 2847
2850 void showLayerTree(const blink::RenderObject* renderer) 2848 void showLayerTree(const blink::RenderObject* renderer)
2851 { 2849 {
2852 if (!renderer) 2850 if (!renderer)
2853 return; 2851 return;
2854 showLayerTree(renderer->enclosingLayer()); 2852 showLayerTree(renderer->enclosingLayer());
2855 } 2853 }
2856 #endif 2854 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/FilterEffectRenderer.cpp ('k') | Source/core/svg/graphics/filters/SVGFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698