| 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 14 matching lines...) Expand all Loading... |
| 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR | 25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR |
| 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF | 26 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 28 * SUCH DAMAGE. | 28 * SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef ReferenceFilterBuilder_h | 31 #ifndef ReferenceFilterBuilder_h |
| 32 #define ReferenceFilterBuilder_h | 32 #define ReferenceFilterBuilder_h |
| 33 | 33 |
| 34 #include "core/fetch/DocumentResourceReference.h" | 34 #include "core/fetch/DocumentResourceReference.h" |
| 35 #include "core/platform/graphics/filters/FilterEffect.h" | 35 #include "platform/graphics/filters/FilterEffect.h" |
| 36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
| 37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 class Filter; | 41 class Filter; |
| 42 class FilterEffect; | 42 class FilterEffect; |
| 43 class FilterOperation; | 43 class FilterOperation; |
| 44 class ReferenceFilterOperation; | 44 class ReferenceFilterOperation; |
| 45 class RenderObject; | 45 class RenderObject; |
| 46 | 46 |
| 47 class ReferenceFilterBuilder { | 47 class ReferenceFilterBuilder { |
| 48 public: | 48 public: |
| 49 static DocumentResourceReference* documentResourceReference(const FilterOper
ation*); | 49 static DocumentResourceReference* documentResourceReference(const FilterOper
ation*); |
| 50 static void setDocumentResourceReference(const FilterOperation*, PassOwnPtr<
DocumentResourceReference>); | 50 static void setDocumentResourceReference(const FilterOperation*, PassOwnPtr<
DocumentResourceReference>); |
| 51 static void clearDocumentResourceReference(const FilterOperation*); | 51 static void clearDocumentResourceReference(const FilterOperation*); |
| 52 | 52 |
| 53 static PassRefPtr<FilterEffect> build(Filter*, RenderObject* renderer, Filte
rEffect* previousEffect, const ReferenceFilterOperation*); | 53 static PassRefPtr<FilterEffect> build(Filter*, RenderObject* renderer, Filte
rEffect* previousEffect, const ReferenceFilterOperation*); |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 static HashMap<const FilterOperation*, OwnPtr<DocumentResourceReference> >*
documentResourceReferences; | 56 static HashMap<const FilterOperation*, OwnPtr<DocumentResourceReference> >*
documentResourceReferences; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } | 59 } |
| 60 | 60 |
| 61 #endif // ReferenceFilterBuilder_h | 61 #endif // ReferenceFilterBuilder_h |
| OLD | NEW |