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 21 matching lines...) Expand all Loading... |
32 #define ReferenceFilterBuilder_h | 32 #define ReferenceFilterBuilder_h |
33 | 33 |
34 #include "core/fetch/DocumentResourceReference.h" | 34 #include "core/fetch/DocumentResourceReference.h" |
35 #include "wtf/Allocator.h" | 35 #include "wtf/Allocator.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 blink { | 39 namespace blink { |
40 | 40 |
41 class Element; | 41 class Element; |
| 42 class Filter; |
42 class FilterEffect; | 43 class FilterEffect; |
43 class FilterOperation; | 44 class FilterOperation; |
44 class ReferenceFilterOperation; | 45 class ReferenceFilterOperation; |
45 class ReferenceFilter; | |
46 | 46 |
47 class ReferenceFilterBuilder { | 47 class ReferenceFilterBuilder { |
48 STATIC_ONLY(ReferenceFilterBuilder); | 48 STATIC_ONLY(ReferenceFilterBuilder); |
49 public: | 49 public: |
50 static DocumentResourceReference* documentResourceReference(const FilterOper
ation*); | 50 static DocumentResourceReference* documentResourceReference(const FilterOper
ation*); |
51 static void setDocumentResourceReference(const FilterOperation*, PassOwnPtr<
DocumentResourceReference>); | 51 static void setDocumentResourceReference(const FilterOperation*, PassOwnPtr<
DocumentResourceReference>); |
52 static void clearDocumentResourceReference(const FilterOperation*); | 52 static void clearDocumentResourceReference(const FilterOperation*); |
53 | 53 |
54 static PassRefPtrWillBeRawPtr<ReferenceFilter> build(float zoom, Element*, F
ilterEffect* previousEffect, const ReferenceFilterOperation&); | 54 static PassRefPtrWillBeRawPtr<Filter> build(float zoom, Element*, FilterEffe
ct* previousEffect, const ReferenceFilterOperation&); |
55 | 55 |
56 private: | 56 private: |
57 static HashMap<const FilterOperation*, OwnPtr<DocumentResourceReference>>* d
ocumentResourceReferences; | 57 static HashMap<const FilterOperation*, OwnPtr<DocumentResourceReference>>* d
ocumentResourceReferences; |
58 }; | 58 }; |
59 | 59 |
60 } | 60 } |
61 | 61 |
62 #endif // ReferenceFilterBuilder_h | 62 #endif // ReferenceFilterBuilder_h |
OLD | NEW |