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

Side by Side Diff: Source/platform/graphics/filters/FilterOperations.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 30 matching lines...) Expand all
41 outset.setWidth(3 * kernelSize.width() * 0.5f); 41 outset.setWidth(3 * kernelSize.width() * 0.5f);
42 outset.setHeight(3 * kernelSize.height() * 0.5f); 42 outset.setHeight(3 * kernelSize.height() * 0.5f);
43 43
44 return outset; 44 return outset;
45 } 45 }
46 46
47 FilterOperations::FilterOperations() 47 FilterOperations::FilterOperations()
48 { 48 {
49 } 49 }
50 50
51 void FilterOperations::trace(Visitor* visitor)
52 {
53 visitor->trace(m_operations);
54 }
55
51 FilterOperations& FilterOperations::operator=(const FilterOperations& other) 56 FilterOperations& FilterOperations::operator=(const FilterOperations& other)
52 { 57 {
53 m_operations = other.m_operations; 58 m_operations = other.m_operations;
54 return *this; 59 return *this;
55 } 60 }
56 61
57 bool FilterOperations::operator==(const FilterOperations& o) const 62 bool FilterOperations::operator==(const FilterOperations& o) const
58 { 63 {
59 if (m_operations.size() != o.m_operations.size()) 64 if (m_operations.size() != o.m_operations.size())
60 return false; 65 return false;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 bool FilterOperations::hasFilterThatMovesPixels() const 171 bool FilterOperations::hasFilterThatMovesPixels() const
167 { 172 {
168 for (size_t i = 0; i < m_operations.size(); ++i) 173 for (size_t i = 0; i < m_operations.size(); ++i)
169 if (m_operations[i]->movesPixels()) 174 if (m_operations[i]->movesPixels())
170 return true; 175 return true;
171 return false; 176 return false;
172 } 177 }
173 178
174 } // namespace blink 179 } // namespace blink
175 180
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FilterOperations.h ('k') | Source/platform/graphics/filters/ImageFilterBuilderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698