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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 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) Research In Motion Limited 2009-2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool hasFallback; 97 bool hasFallback;
98 }; 98 };
99 99
100 class LayoutSVGResourcePaintServer : public LayoutSVGResourceContainer { 100 class LayoutSVGResourcePaintServer : public LayoutSVGResourceContainer {
101 public: 101 public:
102 LayoutSVGResourcePaintServer(SVGElement*); 102 LayoutSVGResourcePaintServer(SVGElement*);
103 ~LayoutSVGResourcePaintServer() override; 103 ~LayoutSVGResourcePaintServer() override;
104 104
105 virtual SVGPaintServer preparePaintServer(const LayoutObject&) = 0; 105 virtual SVGPaintServer preparePaintServer(const LayoutObject&) = 0;
106 106
107 char objectSize() const override { return sizeof(this); }
108
107 // Helper utilities used in to access the underlying resources for DRT. 109 // Helper utilities used in to access the underlying resources for DRT.
108 static SVGPaintDescription requestPaintDescription(const LayoutObject&, 110 static SVGPaintDescription requestPaintDescription(const LayoutObject&,
109 const ComputedStyle&, 111 const ComputedStyle&,
110 LayoutSVGResourceMode); 112 LayoutSVGResourceMode);
111 }; 113 };
112 114
113 DEFINE_TYPE_CASTS(LayoutSVGResourcePaintServer, 115 DEFINE_TYPE_CASTS(LayoutSVGResourcePaintServer,
114 LayoutSVGResourceContainer, 116 LayoutSVGResourceContainer,
115 resource, 117 resource,
116 resource->isSVGPaintServer(), 118 resource->isSVGPaintServer(),
117 resource.isSVGPaintServer()); 119 resource.isSVGPaintServer());
118 120
119 } // namespace blink 121 } // namespace blink
120 122
121 #endif 123 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698