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

Side by Side Diff: Source/core/platform/graphics/filters/FEBlend.cpp

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies)
7 * Copyright (C) 2013 Google Inc. All rights reserved. 7 * Copyright (C) 2013 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either 11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version. 12 * version 2 of the License, or (at your option) any later version.
13 * 13 *
14 * This library is distributed in the hope that it will be useful, 14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details. 17 * Library General Public License for more details.
18 * 18 *
19 * You should have received a copy of the GNU Library General Public License 19 * You should have received a copy of the GNU Library General Public License
20 * along with this library; see the file COPYING.LIB. If not, write to 20 * along with this library; see the file COPYING.LIB. If not, write to
21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22 * Boston, MA 02110-1301, USA. 22 * Boston, MA 02110-1301, USA.
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 26
27 #include "core/platform/graphics/cpu/arm/filters/FEBlendNEON.h" 27 #include "core/platform/graphics/cpu/arm/filters/FEBlendNEON.h"
28 #include "core/platform/graphics/filters/FEBlend.h" 28 #include "core/platform/graphics/filters/FEBlend.h"
29 29 #include "platform/graphics/GraphicsContext.h"
30 #include "core/platform/graphics/GraphicsContext.h" 30 #include "platform/graphics/filters/SkiaImageFilterBuilder.h"
31 #include "platform/graphics/skia/NativeImageSkia.h"
31 #include "platform/text/TextStream.h" 32 #include "platform/text/TextStream.h"
32 #include "wtf/Uint8ClampedArray.h" 33 #include "wtf/Uint8ClampedArray.h"
33 34
34 #include "SkBitmapSource.h" 35 #include "SkBitmapSource.h"
35 #include "SkXfermodeImageFilter.h" 36 #include "SkXfermodeImageFilter.h"
36 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h"
37 #include "core/platform/graphics/skia/NativeImageSkia.h"
38 37
39 typedef unsigned char (*BlendType)(unsigned char colorA, unsigned char colorB, u nsigned char alphaA, unsigned char alphaB); 38 typedef unsigned char (*BlendType)(unsigned char colorA, unsigned char colorB, u nsigned char alphaA, unsigned char alphaB);
40 39
41 namespace WebCore { 40 namespace WebCore {
42 41
43 FEBlend::FEBlend(Filter* filter, BlendModeType mode) 42 FEBlend::FEBlend(Filter* filter, BlendModeType mode)
44 : FilterEffect(filter) 43 : FilterEffect(filter)
45 , m_mode(mode) 44 , m_mode(mode)
46 { 45 {
47 } 46 }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 writeIndent(ts, indent); 277 writeIndent(ts, indent);
279 ts << "[feBlend"; 278 ts << "[feBlend";
280 FilterEffect::externalRepresentation(ts); 279 FilterEffect::externalRepresentation(ts);
281 ts << " mode=\"" << m_mode << "\"]\n"; 280 ts << " mode=\"" << m_mode << "\"]\n";
282 inputEffect(0)->externalRepresentation(ts, indent + 1); 281 inputEffect(0)->externalRepresentation(ts, indent + 1);
283 inputEffect(1)->externalRepresentation(ts, indent + 1); 282 inputEffect(1)->externalRepresentation(ts, indent + 1);
284 return ts; 283 return ts;
285 } 284 }
286 285
287 } // namespace WebCore 286 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/filters/FEBlend.h ('k') | Source/core/platform/graphics/filters/FEColorMatrix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698