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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/filters/Filter.cpp

Issue 1923993002: Revert of Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above 9 * 1. Redistributions of source code must retain the above
10 * copyright notice, this list of conditions and the following 10 * copyright notice, this list of conditions and the following
(...skipping 26 matching lines...) Expand all
37 37
38 Filter::Filter(const FloatRect& referenceBox, const FloatRect& filterRegion, flo at scale, UnitScaling unitScaling) 38 Filter::Filter(const FloatRect& referenceBox, const FloatRect& filterRegion, flo at scale, UnitScaling unitScaling)
39 : m_referenceBox(referenceBox) 39 : m_referenceBox(referenceBox)
40 , m_filterRegion(filterRegion) 40 , m_filterRegion(filterRegion)
41 , m_scale(scale) 41 , m_scale(scale)
42 , m_unitScaling(unitScaling) 42 , m_unitScaling(unitScaling)
43 , m_sourceGraphic(SourceGraphic::create(this)) 43 , m_sourceGraphic(SourceGraphic::create(this))
44 { 44 {
45 } 45 }
46 46
47 Filter::~Filter()
48 {
49 }
50
47 Filter* Filter::create(const FloatRect& referenceBox, const FloatRect& filterReg ion, float scale, UnitScaling unitScaling) 51 Filter* Filter::create(const FloatRect& referenceBox, const FloatRect& filterReg ion, float scale, UnitScaling unitScaling)
48 { 52 {
49 return new Filter(referenceBox, filterRegion, scale, unitScaling); 53 return new Filter(referenceBox, filterRegion, scale, unitScaling);
50 } 54 }
51 55
52 Filter* Filter::create(float scale) 56 Filter* Filter::create(float scale)
53 { 57 {
54 return new Filter(FloatRect(), FloatRect(), scale, UserSpace); 58 return new Filter(FloatRect(), FloatRect(), scale, UserSpace);
55 } 59 }
56 60
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 point.y() * referenceBox().height() + referenceBox().y(), 100 point.y() * referenceBox().height() + referenceBox().y(),
97 point.z() * sqrtf(referenceBox().size().diagonalLengthSquared() / 2)); 101 point.z() * sqrtf(referenceBox().size().diagonalLengthSquared() / 2));
98 } 102 }
99 103
100 void Filter::setLastEffect(FilterEffect* effect) 104 void Filter::setLastEffect(FilterEffect* effect)
101 { 105 {
102 m_lastEffect = effect; 106 m_lastEffect = effect;
103 } 107 }
104 108
105 } // namespace blink 109 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/filters/Filter.h ('k') | third_party/WebKit/Source/platform/mhtml/MHTMLArchive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698