OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
4 * Copyright 2014 The Chromium Authors. All rights reserved. | 4 * Copyright 2014 The Chromium Authors. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 bool m_shouldCollectPatternAttributes : 1; | 64 bool m_shouldCollectPatternAttributes : 1; |
65 Persistent<PatternAttributesWrapper> m_attributesWrapper; | 65 Persistent<PatternAttributesWrapper> m_attributesWrapper; |
66 | 66 |
67 PatternAttributes& mutableAttributes() { | 67 PatternAttributes& mutableAttributes() { |
68 return m_attributesWrapper->attributes(); | 68 return m_attributesWrapper->attributes(); |
69 } | 69 } |
70 const PatternAttributes& attributes() const { | 70 const PatternAttributes& attributes() const { |
71 return m_attributesWrapper->attributes(); | 71 return m_attributesWrapper->attributes(); |
72 } | 72 } |
73 | 73 |
74 // FIXME: we can almost do away with this per-object map, but not quite: the t
ile size can be | 74 // FIXME: we can almost do away with this per-object map, but not quite: the |
75 // relative to the client bounding box, and it gets captured in the cached Pat
tern shader. | 75 // tile size can be relative to the client bounding box, and it gets captured |
76 // Hence, we need one Pattern shader per client. The display list OTOH is the
same => we | 76 // in the cached Pattern shader. |
77 // should be able to cache a single display list per LayoutSVGResourcePattern
+ one | 77 // Hence, we need one Pattern shader per client. The display list OTOH is the |
78 // Pattern(shader) for each client -- this would avoid re-recording when multi
ple clients | 78 // same => we should be able to cache a single display list per |
79 // share the same pattern. | 79 // LayoutSVGResourcePattern + one Pattern(shader) for each client -- this |
| 80 // would avoid re-recording when multiple clients share the same pattern. |
80 HashMap<const LayoutObject*, std::unique_ptr<PatternData>> m_patternMap; | 81 HashMap<const LayoutObject*, std::unique_ptr<PatternData>> m_patternMap; |
81 }; | 82 }; |
82 | 83 |
83 } // namespace blink | 84 } // namespace blink |
84 | 85 |
85 #endif | 86 #endif |
OLD | NEW |