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

Side by Side Diff: src/effects/SkLightingImageFilter.cpp

Issue 1443763002: Increase the amount of debug information printed out by batches (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix printf Created 5 years, 1 month 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/effects/SkArithmeticMode_gpu.h ('k') | src/gpu/GrDrawTarget.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 * 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"
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 friend class SkLightingImageFilter; 484 friend class SkLightingImageFilter;
485 typedef SkLightingImageFilterInternal INHERITED; 485 typedef SkLightingImageFilterInternal INHERITED;
486 }; 486 };
487 487
488 #if SK_SUPPORT_GPU 488 #if SK_SUPPORT_GPU
489 489
490 class GrLightingEffect : public GrSingleTextureEffect { 490 class GrLightingEffect : public GrSingleTextureEffect {
491 public: 491 public:
492 GrLightingEffect(GrTexture* texture, const SkImageFilterLight* light, SkScal ar surfaceScale, 492 GrLightingEffect(GrTexture* texture, const SkImageFilterLight* light, SkScal ar surfaceScale,
493 const SkMatrix& matrix, BoundaryMode boundaryMode); 493 const SkMatrix& matrix, BoundaryMode boundaryMode);
494 virtual ~GrLightingEffect(); 494 ~GrLightingEffect() override;
495 495
496 const SkImageFilterLight* light() const { return fLight; } 496 const SkImageFilterLight* light() const { return fLight; }
497 SkScalar surfaceScale() const { return fSurfaceScale; } 497 SkScalar surfaceScale() const { return fSurfaceScale; }
498 const SkMatrix& filterMatrix() const { return fFilterMatrix; } 498 const SkMatrix& filterMatrix() const { return fFilterMatrix; }
499 BoundaryMode boundaryMode() const { return fBoundaryMode; } 499 BoundaryMode boundaryMode() const { return fBoundaryMode; }
500 500
501 protected: 501 protected:
502 bool onIsEqual(const GrFragmentProcessor&) const override; 502 bool onIsEqual(const GrFragmentProcessor&) const override;
503 503
504 void onComputeInvariantOutput(GrInvariantOutput* inout) const override { 504 void onComputeInvariantOutput(GrInvariantOutput* inout) const override {
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 2014
2015 fsBuilder->codeAppendf("%s(%s)", fLightColorFunc.c_str(), surfaceToLight); 2015 fsBuilder->codeAppendf("%s(%s)", fLightColorFunc.c_str(), surfaceToLight);
2016 } 2016 }
2017 2017
2018 #endif 2018 #endif
2019 2019
2020 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkLightingImageFilter) 2020 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkLightingImageFilter)
2021 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiffuseLightingImageFilter) 2021 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDiffuseLightingImageFilter)
2022 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSpecularLightingImageFilter) 2022 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSpecularLightingImageFilter)
2023 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 2023 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.h ('k') | src/gpu/GrDrawTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698