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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerFilterInfo.h

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Fix copyrights and years. Created 4 years, 10 months 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
OLDNEW
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 typedef HashMap<const PaintLayer*, PaintLayerFilterInfo*> PaintLayerFilterInfoMa p; 50 typedef HashMap<const PaintLayer*, PaintLayerFilterInfo*> PaintLayerFilterInfoMa p;
51 51
52 // PaintLayerFilterInfo holds the filter information for painting. 52 // PaintLayerFilterInfo holds the filter information for painting.
53 // https://drafts.fxtf.org/filters/ 53 // https://drafts.fxtf.org/filters/
54 // 54 //
55 // Because PaintLayer is not allocated for SVG objects, SVG filters (both 55 // Because PaintLayer is not allocated for SVG objects, SVG filters (both
56 // software and hardware-accelerated) use a different code path to paint the 56 // software and hardware-accelerated) use a different code path to paint the
57 // filters (SVGFilterPainter), but both code paths use the same abstraction for 57 // filters (SVGFilterPainter), but both code paths use the same abstraction for
58 // painting non-hardware accelerated filters (FilterEffect). Hardware 58 // painting non-hardware accelerated filters (FilterEffect). Hardware
59 // accelerated CSS filters use WebFilterOperations, that is backed by cc. 59 // accelerated CSS filters use CompositorFilterOperations, that is backed by cc.
60 // 60 //
61 // PaintLayerFilterInfo is allocated when filters are present and stored in an 61 // PaintLayerFilterInfo is allocated when filters are present and stored in an
62 // internal map (s_filterMap) to save memory as 'filter' should be a rare 62 // internal map (s_filterMap) to save memory as 'filter' should be a rare
63 // property. 63 // property.
64 class PaintLayerFilterInfo final : public DocumentResourceClient, public SVGReso urceClient { 64 class PaintLayerFilterInfo final : public DocumentResourceClient, public SVGReso urceClient {
65 USING_FAST_MALLOC(PaintLayerFilterInfo); 65 USING_FAST_MALLOC(PaintLayerFilterInfo);
66 WTF_MAKE_NONCOPYABLE(PaintLayerFilterInfo); 66 WTF_MAKE_NONCOPYABLE(PaintLayerFilterInfo);
67 public: 67 public:
68 // Queries the PaintLayerFilterInfo for the associated PaintLayer. 68 // Queries the PaintLayerFilterInfo for the associated PaintLayer.
69 // The function returns nullptr if there is no associated 69 // The function returns nullptr if there is no associated
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // This stores SVG reference filters (filter: url(#someElement)) where the 103 // This stores SVG reference filters (filter: url(#someElement)) where the
104 // reference belongs to a different document. 104 // reference belongs to a different document.
105 WillBePersistentHeapVector<RefPtrWillBeMember<DocumentResource>> m_externalS VGReferences; 105 WillBePersistentHeapVector<RefPtrWillBeMember<DocumentResource>> m_externalS VGReferences;
106 }; 106 };
107 107
108 } // namespace blink 108 } // namespace blink
109 109
110 110
111 #endif // PaintLayerFilterInfo_h 111 #endif // PaintLayerFilterInfo_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698