| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |