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

Side by Side Diff: Source/core/layout/svg/LayoutSVGResourcePattern.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
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 24 matching lines...) Expand all
35 35
36 class AffineTransform; 36 class AffineTransform;
37 class FloatRect; 37 class FloatRect;
38 class SVGPatternElement; 38 class SVGPatternElement;
39 struct PatternData; 39 struct PatternData;
40 40
41 class LayoutSVGResourcePattern final : public LayoutSVGResourcePaintServer { 41 class LayoutSVGResourcePattern final : public LayoutSVGResourcePaintServer {
42 public: 42 public:
43 explicit LayoutSVGResourcePattern(SVGPatternElement*); 43 explicit LayoutSVGResourcePattern(SVGPatternElement*);
44 44
45 virtual const char* name() const override { return "LayoutSVGResourcePattern "; } 45 const char* name() const override { return "LayoutSVGResourcePattern"; }
46 46
47 virtual void removeAllClientsFromCache(bool markForInvalidation = true) over ride; 47 void removeAllClientsFromCache(bool markForInvalidation = true) override;
48 virtual void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) override; 48 void removeClientFromCache(LayoutObject*, bool markForInvalidation = true) o verride;
49 49
50 virtual SVGPaintServer preparePaintServer(const LayoutObject&) override; 50 SVGPaintServer preparePaintServer(const LayoutObject&) override;
51 51
52 static const LayoutSVGResourceType s_resourceType = PatternResourceType; 52 static const LayoutSVGResourceType s_resourceType = PatternResourceType;
53 virtual LayoutSVGResourceType resourceType() const override { return s_resou rceType; } 53 LayoutSVGResourceType resourceType() const override { return s_resourceType; }
54 54
55 private: 55 private:
56 PassOwnPtr<PatternData> buildPatternData(const LayoutObject&); 56 PassOwnPtr<PatternData> buildPatternData(const LayoutObject&);
57 PassRefPtr<const SkPicture> asPicture(const FloatRect& tile, const AffineTra nsform&) const; 57 PassRefPtr<const SkPicture> asPicture(const FloatRect& tile, const AffineTra nsform&) const;
58 PatternData* patternForLayoutObject(const LayoutObject&); 58 PatternData* patternForLayoutObject(const LayoutObject&);
59 59
60 bool m_shouldCollectPatternAttributes : 1; 60 bool m_shouldCollectPatternAttributes : 1;
61 #if ENABLE(OILPAN) 61 #if ENABLE(OILPAN)
62 Persistent<PatternAttributesWrapper> m_attributesWrapper; 62 Persistent<PatternAttributesWrapper> m_attributesWrapper;
63 63
(...skipping 11 matching lines...) Expand all
75 // Hence, we need one Pattern shader per client. The display list OTOH is th e same => we 75 // Hence, we need one Pattern shader per client. The display list OTOH is th e same => we
76 // should be able to cache a single display list per LayoutSVGResourcePatter n + one 76 // should be able to cache a single display list per LayoutSVGResourcePatter n + one
77 // Pattern(shader) for each client -- this would avoid re-recording when mul tiple clients 77 // Pattern(shader) for each client -- this would avoid re-recording when mul tiple clients
78 // share the same pattern. 78 // share the same pattern.
79 HashMap<const LayoutObject*, OwnPtr<PatternData>> m_patternMap; 79 HashMap<const LayoutObject*, OwnPtr<PatternData>> m_patternMap;
80 }; 80 };
81 81
82 } 82 }
83 83
84 #endif 84 #endif
OLDNEW
« no previous file with comments | « Source/core/layout/svg/LayoutSVGResourcePaintServer.h ('k') | Source/core/layout/svg/LayoutSVGResourceRadialGradient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698