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

Unified Diff: Source/platform/graphics/cpu/arm/filters/FELightingNEON.h

Issue 107713004: Move all filters-related files from core/platform to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Maybe fix win build. 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/cpu/arm/filters/FELightingNEON.h
diff --git a/Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h b/Source/platform/graphics/cpu/arm/filters/FELightingNEON.h
similarity index 97%
rename from Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h
rename to Source/platform/graphics/cpu/arm/filters/FELightingNEON.h
index b255fd39aa2114bbbd85b37a5e4cdbc9abfaaee9..69939a582a45979950f91ce505605e76da32cf19 100644
--- a/Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h
+++ b/Source/platform/graphics/cpu/arm/filters/FELightingNEON.h
@@ -29,7 +29,7 @@
#if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC)
-#include "core/platform/graphics/filters/FELighting.h"
+#include "platform/graphics/filters/FELighting.h"
#include "wtf/Alignment.h"
#include "wtf/CPU.h"
#include "wtf/ParallelJobs.h"
@@ -154,9 +154,9 @@ inline void FELighting::platformApplyNeon(LightingData& data, LightSource::Paint
// Set lighting arguments.
floatArguments.surfaceScale = data.surfaceScale;
floatArguments.minusSurfaceScaleDividedByFour = -data.surfaceScale / 4;
- if (m_lightingType == FELighting::DiffuseLighting)
+ if (m_lightingType == FELighting::DiffuseLighting) {
floatArguments.diffuseConstant = m_diffuseConstant;
- else {
+ } else {
neonData.flags |= FLAG_SPECULAR_LIGHT;
floatArguments.diffuseConstant = m_specularConstant;
neonData.specularExponent = getPowerCoefficients(m_specularExponent);
@@ -184,8 +184,9 @@ inline void FELighting::platformApplyNeon(LightingData& data, LightSource::Paint
if (job > 0) {
params.absoluteHeight = yStep;
yStart += yStep;
- } else
+ } else {
params.absoluteHeight = data.heightDecreasedByOne - yStart;
+ }
}
parallelJobs.execute();
return;

Powered by Google App Engine
This is Rietveld 408576698