OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "SkLightingImageFilter.h" | 8 #include "SkLightingImageFilter.h" |
9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
10 #include "SkColorPriv.h" | 10 #include "SkColorPriv.h" |
11 #include "SkPoint3.h" | 11 #include "SkPoint3.h" |
12 #include "SkReadBuffer.h" | 12 #include "SkReadBuffer.h" |
13 #include "SkTypes.h" | 13 #include "SkTypes.h" |
14 #include "SkWriteBuffer.h" | 14 #include "SkWriteBuffer.h" |
15 | 15 |
16 #if SK_SUPPORT_GPU | 16 #if SK_SUPPORT_GPU |
17 #include "GrContext.h" | 17 #include "GrContext.h" |
18 #include "GrDrawContext.h" | 18 #include "GrDrawContext.h" |
19 #include "GrFragmentProcessor.h" | 19 #include "GrFragmentProcessor.h" |
20 #include "GrInvariantOutput.h" | 20 #include "GrInvariantOutput.h" |
21 #include "GrPaint.h" | 21 #include "GrPaint.h" |
22 #include "effects/GrSingleTextureEffect.h" | 22 #include "effects/GrSingleTextureEffect.h" |
23 #include "gl/GrGLProcessor.h" | 23 #include "gl/GrGLFragmentProcessor.h" |
24 #include "gl/builders/GrGLProgramBuilder.h" | 24 #include "gl/builders/GrGLProgramBuilder.h" |
25 | 25 |
26 class GrGLDiffuseLightingEffect; | 26 class GrGLDiffuseLightingEffect; |
27 class GrGLSpecularLightingEffect; | 27 class GrGLSpecularLightingEffect; |
28 | 28 |
29 // For brevity | 29 // For brevity |
30 typedef GrGLProgramDataManager::UniformHandle UniformHandle; | 30 typedef GrGLProgramDataManager::UniformHandle UniformHandle; |
31 #endif | 31 #endif |
32 | 32 |
33 namespace { | 33 namespace { |
(...skipping 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2024 | 2024 |
2025 fsBuilder->codeAppendf("%s(%s)", fLightColorFunc.c_str(), surfaceToLight); | 2025 fsBuilder->codeAppendf("%s(%s)", fLightColorFunc.c_str(), surfaceToLight); |
2026 } | 2026 } |
2027 | 2027 |
2028 #endif | 2028 #endif |
2029 | 2029 |
2030 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkLightingImageFilter) | 2030 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkLightingImageFilter) |
2031 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiffuseLightingImageFilter) | 2031 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiffuseLightingImageFilter) |
2032 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSpecularLightingImageFilter) | 2032 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSpecularLightingImageFilter) |
2033 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 2033 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |