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

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

Issue 419533002: Make DRT output for FEBlend::m_mode lowercase (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 RefPtr<SkImageFilter> background(builder->build(inputEffect(1), operatingCol orSpace())); 207 RefPtr<SkImageFilter> background(builder->build(inputEffect(1), operatingCol orSpace()));
208 SkAutoTUnref<SkXfermode> mode(SkXfermode::Create(toSkiaMode(m_mode))); 208 SkAutoTUnref<SkXfermode> mode(SkXfermode::Create(toSkiaMode(m_mode)));
209 SkImageFilter::CropRect cropRect = getCropRect(builder->cropOffset()); 209 SkImageFilter::CropRect cropRect = getCropRect(builder->cropOffset());
210 return adoptRef(SkXfermodeImageFilter::Create(mode, background.get(), foregr ound.get(), &cropRect)); 210 return adoptRef(SkXfermodeImageFilter::Create(mode, background.get(), foregr ound.get(), &cropRect));
211 } 211 }
212 212
213 static TextStream& operator<<(TextStream& ts, const BlendModeType& type) 213 static TextStream& operator<<(TextStream& ts, const BlendModeType& type)
214 { 214 {
215 switch (type) { 215 switch (type) {
216 case FEBLEND_MODE_UNKNOWN: 216 case FEBLEND_MODE_UNKNOWN:
217 ts << "UNKNOWN"; 217 ts << "unknown";
218 break; 218 break;
219 case FEBLEND_MODE_NORMAL: 219 case FEBLEND_MODE_NORMAL:
220 ts << "NORMAL"; 220 ts << "normal";
221 break; 221 break;
222 case FEBLEND_MODE_MULTIPLY: 222 case FEBLEND_MODE_MULTIPLY:
223 ts << "MULTIPLY"; 223 ts << "multiply";
224 break; 224 break;
225 case FEBLEND_MODE_SCREEN: 225 case FEBLEND_MODE_SCREEN:
226 ts << "SCREEN"; 226 ts << "screen";
227 break; 227 break;
228 case FEBLEND_MODE_DARKEN: 228 case FEBLEND_MODE_DARKEN:
229 ts << "DARKEN"; 229 ts << "darken";
230 break; 230 break;
231 case FEBLEND_MODE_LIGHTEN: 231 case FEBLEND_MODE_LIGHTEN:
232 ts << "LIGHTEN"; 232 ts << "lighten";
233 break; 233 break;
234 } 234 }
235 return ts; 235 return ts;
236 } 236 }
237 237
238 TextStream& FEBlend::externalRepresentation(TextStream& ts, int indent) const 238 TextStream& FEBlend::externalRepresentation(TextStream& ts, int indent) const
239 { 239 {
240 writeIndent(ts, indent); 240 writeIndent(ts, indent);
241 ts << "[feBlend"; 241 ts << "[feBlend";
242 FilterEffect::externalRepresentation(ts); 242 FilterEffect::externalRepresentation(ts);
243 ts << " mode=\"" << m_mode << "\"]\n"; 243 ts << " mode=\"" << m_mode << "\"]\n";
244 inputEffect(0)->externalRepresentation(ts, indent + 1); 244 inputEffect(0)->externalRepresentation(ts, indent + 1);
245 inputEffect(1)->externalRepresentation(ts, indent + 1); 245 inputEffect(1)->externalRepresentation(ts, indent + 1);
246 return ts; 246 return ts;
247 } 247 }
248 248
249 } // namespace blink 249 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698