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

Side by Side Diff: Source/platform/graphics/filters/ReferenceFilter.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) 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 25 matching lines...) Expand all
36 #include "platform/graphics/filters/SourceGraphic.h" 36 #include "platform/graphics/filters/SourceGraphic.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 ReferenceFilter::ReferenceFilter(float scale) 40 ReferenceFilter::ReferenceFilter(float scale)
41 : Filter(scale) 41 : Filter(scale)
42 , m_sourceGraphic(SourceGraphic::create(this)) 42 , m_sourceGraphic(SourceGraphic::create(this))
43 { 43 {
44 } 44 }
45 45
46 void ReferenceFilter::setLastEffect(PassRefPtr<FilterEffect> effect)
47 {
48 m_lastEffect = effect;
49 }
50
51 ReferenceFilter::~ReferenceFilter() 46 ReferenceFilter::~ReferenceFilter()
52 { 47 {
53 } 48 }
54 49
50 void ReferenceFilter::trace(Visitor* visitor)
51 {
52 visitor->trace(m_sourceGraphic);
53 visitor->trace(m_lastEffect);
54 Filter::trace(visitor);
55 }
56
57 void ReferenceFilter::setLastEffect(PassRefPtrWillBeRawPtr<FilterEffect> effect)
58 {
59 m_lastEffect = effect;
60 }
61
55 } // namespace blink 62 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/ReferenceFilter.h ('k') | Source/platform/graphics/filters/SourceAlpha.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698