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

Side by Side Diff: src/core/SkLightingShader.cpp

Issue 1397123002: Move functions from SkGr to SkGrPriv.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 9th time's a charm? Created 5 years, 2 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
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/effects/SkTableColorFilter.cpp » ('j') | 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 /* 2 /*
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkBitmapProcState.h" 9 #include "SkBitmapProcState.h"
10 #include "SkColor.h" 10 #include "SkColor.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 //////////////////////////////////////////////////////////////////////////// 126 ////////////////////////////////////////////////////////////////////////////
127 127
128 #if SK_SUPPORT_GPU 128 #if SK_SUPPORT_GPU
129 129
130 #include "GrCoordTransform.h" 130 #include "GrCoordTransform.h"
131 #include "GrFragmentProcessor.h" 131 #include "GrFragmentProcessor.h"
132 #include "GrTextureAccess.h" 132 #include "GrTextureAccess.h"
133 #include "gl/GrGLProcessor.h" 133 #include "gl/GrGLProcessor.h"
134 #include "gl/builders/GrGLProgramBuilder.h" 134 #include "gl/builders/GrGLProgramBuilder.h"
135 #include "SkGr.h" 135 #include "SkGr.h"
136 #include "SkGrPriv.h"
136 137
137 class LightingFP : public GrFragmentProcessor { 138 class LightingFP : public GrFragmentProcessor {
138 public: 139 public:
139 LightingFP(GrTexture* diffuse, GrTexture* normal, const SkMatrix& diffMatrix , 140 LightingFP(GrTexture* diffuse, GrTexture* normal, const SkMatrix& diffMatrix ,
140 const SkMatrix& normMatrix, const GrTextureParams& diffParams, 141 const SkMatrix& normMatrix, const GrTextureParams& diffParams,
141 const GrTextureParams& normParams, const SkLightingShader::Lights * lights, 142 const GrTextureParams& normParams, const SkLightingShader::Lights * lights,
142 const SkVector& invNormRotation) 143 const SkVector& invNormRotation)
143 : fDiffDeviceTransform(kLocal_GrCoordSet, diffMatrix, diffuse, diffParam s.filterMode()) 144 : fDiffDeviceTransform(kLocal_GrCoordSet, diffMatrix, diffuse, diffParam s.filterMode())
144 , fNormDeviceTransform(kLocal_GrCoordSet, normMatrix, normal, normParams .filterMode()) 145 , fNormDeviceTransform(kLocal_GrCoordSet, normMatrix, normal, normParams .filterMode())
145 , fDiffuseTextureAccess(diffuse, diffParams) 146 , fDiffuseTextureAccess(diffuse, diffParams)
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 normLocalM); 712 normLocalM);
712 } 713 }
713 714
714 /////////////////////////////////////////////////////////////////////////////// 715 ///////////////////////////////////////////////////////////////////////////////
715 716
716 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkLightingShader) 717 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkLightingShader)
717 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLightingShaderImpl) 718 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkLightingShaderImpl)
718 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 719 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
719 720
720 /////////////////////////////////////////////////////////////////////////////// 721 ///////////////////////////////////////////////////////////////////////////////
OLDNEW
« no previous file with comments | « src/core/SkBitmapProcShader.cpp ('k') | src/effects/SkTableColorFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698