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/FilterEffect.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) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
5 * Copyright (C) 2012 University of Szeged 5 * Copyright (C) 2012 University of Szeged
6 * Copyright (C) 2013 Google Inc. All rights reserved. 6 * Copyright (C) 2013 Google Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 , m_operatingColorSpace(ColorSpaceLinearRGB) 42 , m_operatingColorSpace(ColorSpaceLinearRGB)
43 , m_resultColorSpace(ColorSpaceDeviceRGB) 43 , m_resultColorSpace(ColorSpaceDeviceRGB)
44 { 44 {
45 ASSERT(m_filter); 45 ASSERT(m_filter);
46 } 46 }
47 47
48 FilterEffect::~FilterEffect() 48 FilterEffect::~FilterEffect()
49 { 49 {
50 } 50 }
51 51
52 void FilterEffect::trace(Visitor* visitor)
53 {
54 visitor->trace(m_inputEffects);
55 }
56
52 float FilterEffect::maxFilterArea() 57 float FilterEffect::maxFilterArea()
53 { 58 {
54 return kMaxFilterArea; 59 return kMaxFilterArea;
55 } 60 }
56 61
57 bool FilterEffect::isFilterSizeValid(const FloatRect& rect) 62 bool FilterEffect::isFilterSizeValid(const FloatRect& rect)
58 { 63 {
59 if (rect.width() < 0 || rect.height() < 0 64 if (rect.width() < 0 || rect.height() < 0
60 || (rect.height() * rect.width() > kMaxFilterArea)) 65 || (rect.height() * rect.width() > kMaxFilterArea))
61 return false; 66 return false;
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 return m_imageFilters[index].get(); 285 return m_imageFilters[index].get();
281 } 286 }
282 287
283 void FilterEffect::setImageFilter(ColorSpace colorSpace, bool requiresPMColorVal idation, PassRefPtr<SkImageFilter> imageFilter) 288 void FilterEffect::setImageFilter(ColorSpace colorSpace, bool requiresPMColorVal idation, PassRefPtr<SkImageFilter> imageFilter)
284 { 289 {
285 int index = getImageFilterIndex(colorSpace, requiresPMColorValidation); 290 int index = getImageFilterIndex(colorSpace, requiresPMColorValidation);
286 m_imageFilters[index] = imageFilter; 291 m_imageFilters[index] = imageFilter;
287 } 292 }
288 293
289 } // namespace blink 294 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/filters/FilterEffect.h ('k') | Source/platform/graphics/filters/FilterOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698