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

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

Issue 64643009: Remove duplicated headers from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 University of Szeged 2 * Copyright (C) 2010 University of Szeged
3 * Copyright (C) 2010 Zoltan Herczeg 3 * Copyright (C) 2010 Zoltan Herczeg
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 16 matching lines...) Expand all
27 27
28 #include "config.h" 28 #include "config.h"
29 29
30 #include "core/platform/graphics/filters/FELighting.h" 30 #include "core/platform/graphics/filters/FELighting.h"
31 31
32 #include "core/platform/graphics/cpu/arm/filters/FELightingNEON.h" 32 #include "core/platform/graphics/cpu/arm/filters/FELightingNEON.h"
33 #include "core/platform/graphics/filters/ParallelJobs.h" 33 #include "core/platform/graphics/filters/ParallelJobs.h"
34 34
35 #include "SkLightingImageFilter.h" 35 #include "SkLightingImageFilter.h"
36 #include "core/platform/graphics/filters/DistantLightSource.h" 36 #include "core/platform/graphics/filters/DistantLightSource.h"
37 #include "core/platform/graphics/filters/PointLightSource.h"
38 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h" 37 #include "core/platform/graphics/filters/SkiaImageFilterBuilder.h"
39 #include "core/platform/graphics/filters/SpotLightSource.h"
40 #include "core/platform/graphics/skia/NativeImageSkia.h" 38 #include "core/platform/graphics/skia/NativeImageSkia.h"
41 39
42 namespace WebCore { 40 namespace WebCore {
43 41
44 FELighting::FELighting(Filter* filter, LightingType lightingType, const Color& l ightingColor, float surfaceScale, 42 FELighting::FELighting(Filter* filter, LightingType lightingType, const Color& l ightingColor, float surfaceScale,
45 float diffuseConstant, float specularConstant, float specularExponent, 43 float diffuseConstant, float specularConstant, float specularExponent,
46 float kernelUnitLengthX, float kernelUnitLengthY, PassRefPtr<LightSource> li ghtSource) 44 float kernelUnitLengthX, float kernelUnitLengthY, PassRefPtr<LightSource> li ghtSource)
47 : FilterEffect(filter) 45 : FilterEffect(filter)
48 , m_lightingType(lightingType) 46 , m_lightingType(lightingType)
49 , m_lightSource(lightSource) 47 , m_lightSource(lightSource)
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 GraphicsContext* dstContext = resultImage->context(); 481 GraphicsContext* dstContext = resultImage->context();
484 482
485 SkPaint paint; 483 SkPaint paint;
486 RefPtr<SkImageFilter> filter = createImageFilter(0); 484 RefPtr<SkImageFilter> filter = createImageFilter(0);
487 paint.setImageFilter(filter.get()); 485 paint.setImageFilter(filter.get());
488 dstContext->drawBitmap(nativeImage->bitmap(), drawingRegion.location().x(), drawingRegion.location().y(), &paint); 486 dstContext->drawBitmap(nativeImage->bitmap(), drawingRegion.location().x(), drawingRegion.location().y(), &paint);
489 return true; 487 return true;
490 } 488 }
491 489
492 } // namespace WebCore 490 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/filters/FEGaussianBlur.cpp ('k') | Source/core/platform/graphics/filters/FEMerge.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698