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

Side by Side Diff: Source/platform/graphics/filters/FETile.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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) 2008 Alex Mathews <possessedpenguinbob@gmail.com> 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com>
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. 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 17 matching lines...) Expand all
28 #include "platform/graphics/filters/SkiaImageFilterBuilder.h" 28 #include "platform/graphics/filters/SkiaImageFilterBuilder.h"
29 #include "platform/text/TextStream.h" 29 #include "platform/text/TextStream.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 FETile::FETile(Filter* filter) 33 FETile::FETile(Filter* filter)
34 : FilterEffect(filter) 34 : FilterEffect(filter)
35 { 35 {
36 } 36 }
37 37
38 PassRefPtr<FETile> FETile::create(Filter* filter) 38 PassRefPtrWillBeRawPtr<FETile> FETile::create(Filter* filter)
39 { 39 {
40 return adoptRef(new FETile(filter)); 40 return adoptRefWillBeNoop(new FETile(filter));
41 } 41 }
42 42
43 FloatRect FETile::mapPaintRect(const FloatRect& rect, bool forward) 43 FloatRect FETile::mapPaintRect(const FloatRect& rect, bool forward)
44 { 44 {
45 return forward ? maxEffectRect() : inputEffect(0)->maxEffectRect(); 45 return forward ? maxEffectRect() : inputEffect(0)->maxEffectRect();
46 } 46 }
47 47
48 static FloatRect getRect(FilterEffect* effect) 48 static FloatRect getRect(FilterEffect* effect)
49 { 49 {
50 FloatRect result = effect->filter()->filterRegion(); 50 FloatRect result = effect->filter()->filterRegion();
(...skipping 22 matching lines...) Expand all
73 writeIndent(ts, indent); 73 writeIndent(ts, indent);
74 ts << "[feTile"; 74 ts << "[feTile";
75 FilterEffect::externalRepresentation(ts); 75 FilterEffect::externalRepresentation(ts);
76 ts << "]\n"; 76 ts << "]\n";
77 inputEffect(0)->externalRepresentation(ts, indent + 1); 77 inputEffect(0)->externalRepresentation(ts, indent + 1);
78 78
79 return ts; 79 return ts;
80 } 80 }
81 81
82 } // namespace blink 82 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FETile.h ('k') | Source/platform/graphics/filters/FETurbulence.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698