diff options
author | Robert Phillips <robertphillips@google.com> | 2017-08-04 11:27:00 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-07 13:33:49 +0000 |
commit | 6dd8cf144ecbc395dc12bd5f775bbeee04b9d38c (patch) | |
tree | f05965ad55589843158accb1e538411a43068648 /src/core/SkNormalFlatSource.h | |
parent | 35ee0e09b4966bd087147e2c9b4c3177e9737d3b (diff) |
Remove SkLightingShader and associated classes
Change-Id: I8050414c30dfdb5df23ca79955adc5ba3a29d3f5
Reviewed-on: https://skia-review.googlesource.com/31140
Reviewed-by: Mike Reed <reed@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/core/SkNormalFlatSource.h')
-rw-r--r-- | src/core/SkNormalFlatSource.h | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/src/core/SkNormalFlatSource.h b/src/core/SkNormalFlatSource.h deleted file mode 100644 index 938e28f3c5..0000000000 --- a/src/core/SkNormalFlatSource.h +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2016 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef SkNormalFlatSource_DEFINED -#define SkNormalFlatSource_DEFINED - -#include "SkNormalSource.h" - -class SK_API SkNormalFlatSourceImpl : public SkNormalSource { -public: - SkNormalFlatSourceImpl(){} - -#if SK_SUPPORT_GPU - sk_sp<GrFragmentProcessor> asFragmentProcessor(const SkShaderBase::AsFPArgs&) const override; -#endif - - SkNormalSource::Provider* asProvider(const SkShaderBase::ContextRec& rec, - SkArenaAlloc* alloc) const override; - - SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkNormalFlatSourceImpl) - -protected: - void flatten(SkWriteBuffer& buf) const override; - -private: - class Provider : public SkNormalSource::Provider { - public: - Provider(); - - ~Provider() override; - - void fillScanLine(int x, int y, SkPoint3 output[], int count) const override; - - private: - typedef SkNormalSource::Provider INHERITED; - }; - - friend class SkNormalSource; - - typedef SkNormalSource INHERITED; -}; - -#endif |