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

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

Issue 461693002: Remove BLINK_SCALE_FILTERS_AT_RECORD_TIME #ifdef. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/rendering/FilterEffectRenderer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3587 matching lines...) Expand 10 before | Expand all | Expand 10 after
3598 { 3598 {
3599 const FilterOperations& filters = style->filter(); 3599 const FilterOperations& filters = style->filter();
3600 if (filters.hasReferenceFilter()) { 3600 if (filters.hasReferenceFilter()) {
3601 for (size_t i = 0; i < filters.size(); ++i) { 3601 for (size_t i = 0; i < filters.size(); ++i) {
3602 FilterOperation* filterOperation = filters.operations().at(i).get(); 3602 FilterOperation* filterOperation = filters.operations().at(i).get();
3603 if (filterOperation->type() != FilterOperation::REFERENCE) 3603 if (filterOperation->type() != FilterOperation::REFERENCE)
3604 continue; 3604 continue;
3605 ReferenceFilterOperation* referenceOperation = toReferenceFilterOper ation(filterOperation); 3605 ReferenceFilterOperation* referenceOperation = toReferenceFilterOper ation(filterOperation);
3606 // FIXME: Cache the ReferenceFilter if it didn't change. 3606 // FIXME: Cache the ReferenceFilter if it didn't change.
3607 RefPtr<ReferenceFilter> referenceFilter = ReferenceFilter::create(); 3607 RefPtr<ReferenceFilter> referenceFilter = ReferenceFilter::create();
3608 #ifdef BLINK_SCALE_FILTERS_AT_RECORD_TIME
3609 float zoom = style->effectiveZoom() * blink::deviceScaleFactor(rende rer()->frame());
3610 #else
3611 float zoom = style->effectiveZoom(); 3608 float zoom = style->effectiveZoom();
3612 #endif
3613 referenceFilter->setAbsoluteTransform(AffineTransform().scale(zoom, zoom)); 3609 referenceFilter->setAbsoluteTransform(AffineTransform().scale(zoom, zoom));
3614 referenceFilter->setLastEffect(ReferenceFilterBuilder::build(referen ceFilter.get(), renderer(), referenceFilter->sourceGraphic(), 3610 referenceFilter->setLastEffect(ReferenceFilterBuilder::build(referen ceFilter.get(), renderer(), referenceFilter->sourceGraphic(),
3615 referenceOperation)); 3611 referenceOperation));
3616 referenceOperation->setFilter(referenceFilter.release()); 3612 referenceOperation->setFilter(referenceFilter.release());
3617 } 3613 }
3618 } 3614 }
3619 3615
3620 return filters; 3616 return filters;
3621 } 3617 }
3622 3618
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3749 } 3745 }
3750 } 3746 }
3751 3747
3752 void showLayerTree(const blink::RenderObject* renderer) 3748 void showLayerTree(const blink::RenderObject* renderer)
3753 { 3749 {
3754 if (!renderer) 3750 if (!renderer)
3755 return; 3751 return;
3756 showLayerTree(renderer->enclosingLayer()); 3752 showLayerTree(renderer->enclosingLayer());
3757 } 3753 }
3758 #endif 3754 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/FilterEffectRenderer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698