| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. | 2 * Copyright (C) 2012 Adobe Systems Incorporated. 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above | 8 * 1. Redistributions of source code must retain the above |
| 9 * copyright notice, this list of conditions and the following | 9 * copyright notice, this list of conditions and the following |
| 10 * disclaimer. | 10 * disclaimer. |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 typedef HashMap<const RenderLayer*, RenderLayerFilterInfo*> RenderLayerFilterInf
oMap; | 48 typedef HashMap<const RenderLayer*, RenderLayerFilterInfo*> RenderLayerFilterInf
oMap; |
| 49 | 49 |
| 50 class RenderLayerFilterInfo final : public DocumentResourceClient { | 50 class RenderLayerFilterInfo final : public DocumentResourceClient { |
| 51 public: | 51 public: |
| 52 static RenderLayerFilterInfo* filterInfoForRenderLayer(const RenderLayer*); | 52 static RenderLayerFilterInfo* filterInfoForRenderLayer(const RenderLayer*); |
| 53 static RenderLayerFilterInfo* createFilterInfoForRenderLayerIfNeeded(RenderL
ayer*); | 53 static RenderLayerFilterInfo* createFilterInfoForRenderLayerIfNeeded(RenderL
ayer*); |
| 54 static void removeFilterInfoForRenderLayer(RenderLayer*); | 54 static void removeFilterInfoForRenderLayer(RenderLayer*); |
| 55 | 55 |
| 56 FilterEffectRenderer* renderer() const { return m_renderer.get(); } | 56 FilterEffectRenderer* renderer() const { return m_renderer.get(); } |
| 57 void setRenderer(PassRefPtr<FilterEffectRenderer>); | 57 void setRenderer(PassRefPtrWillBeRawPtr<FilterEffectRenderer>); |
| 58 | 58 |
| 59 void updateReferenceFilterClients(const FilterOperations&); | 59 void updateReferenceFilterClients(const FilterOperations&); |
| 60 virtual void notifyFinished(Resource*) override; | 60 virtual void notifyFinished(Resource*) override; |
| 61 void removeReferenceFilterClients(); | 61 void removeReferenceFilterClients(); |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 RenderLayerFilterInfo(RenderLayer*); | 64 RenderLayerFilterInfo(RenderLayer*); |
| 65 virtual ~RenderLayerFilterInfo(); | 65 virtual ~RenderLayerFilterInfo(); |
| 66 | 66 |
| 67 RenderLayer* m_layer; | 67 RenderLayer* m_layer; |
| 68 | 68 |
| 69 RefPtr<FilterEffectRenderer> m_renderer; | 69 RefPtrWillBePersistent<FilterEffectRenderer> m_renderer; |
| 70 | 70 |
| 71 static RenderLayerFilterInfoMap* s_filterMap; | 71 static RenderLayerFilterInfoMap* s_filterMap; |
| 72 WillBePersistentHeapVector<RefPtrWillBeMember<Element> > m_internalSVGRefere
nces; | 72 WillBePersistentHeapVector<RefPtrWillBeMember<Element> > m_internalSVGRefere
nces; |
| 73 Vector<ResourcePtr<DocumentResource> > m_externalSVGReferences; | 73 Vector<ResourcePtr<DocumentResource> > m_externalSVGReferences; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace blink | 76 } // namespace blink |
| 77 | 77 |
| 78 | 78 |
| 79 #endif // RenderLayerFilterInfo_h | 79 #endif // RenderLayerFilterInfo_h |
| OLD | NEW |