Skip to content

Commit

Permalink
Remove SkColorCubeFilter. It is unused.
Browse files Browse the repository at this point in the history
Change-Id: Iec5fc759e331de24caea1347f9510917260d379b
Reviewed-on: https://skia-review.googlesource.com/7363
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
  • Loading branch information
Mike Klein committed Jan 21, 2017
1 parent 17b5e5c commit efaad3c
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 759 deletions.
102 changes: 0 additions & 102 deletions bench/ColorCubeBench.cpp

This file was deleted.

13 changes: 1 addition & 12 deletions fuzz/FilterFuzz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "SkBlurImageFilter.h"
#include "SkBlurMaskFilter.h"
#include "SkCanvas.h"
#include "SkColorCubeFilter.h"
#include "SkColorFilter.h"
#include "SkColorFilterImageFilter.h"
#include "SkColorMatrixFilter.h"
Expand Down Expand Up @@ -578,7 +577,7 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) {
return filter;
}

enum { ALPHA_THRESHOLD, MERGE, COLOR, LUT3D, BLUR, MAGNIFIER,
enum { ALPHA_THRESHOLD, MERGE, COLOR, BLUR, MAGNIFIER,
BLENDMODE, OFFSET, MATRIX, MATRIX_CONVOLUTION, COMPOSE,
DISTANT_LIGHT, POINT_LIGHT, SPOT_LIGHT, NOISE, DROP_SHADOW,
MORPHOLOGY, BITMAP, DISPLACE, TILE, PICTURE, PAINT, NUM_FILTERS };
Expand Down Expand Up @@ -607,16 +606,6 @@ static sk_sp<SkImageFilter> make_image_filter(bool canBeNull) {
: nullptr;
break;
}
case LUT3D: {
int cubeDimension;
bool a, b, c;
fuzz->next(&a, &b, &c);
sk_sp<SkData> lut3D(make_3Dlut(&cubeDimension, a, b, c));
sk_sp<SkColorFilter> cf(SkColorCubeFilter::Make(std::move(lut3D), cubeDimension));
filter = cf ? SkColorFilterImageFilter::Make(std::move(cf), make_image_filter())
: nullptr;
break;
}
case BLUR: {
SkScalar sX = make_number(true);
SkScalar sY = make_number(true);
Expand Down
124 changes: 0 additions & 124 deletions gm/colorcube.cpp

This file was deleted.

1 change: 0 additions & 1 deletion gn/bench.gni
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ bench_sources = [
"$_bench/CmapBench.cpp",
"$_bench/CodecBench.cpp",
"$_bench/ColorCodecBench.cpp",
"$_bench/ColorCubeBench.cpp",
"$_bench/ColorFilterBench.cpp",
"$_bench/ColorPrivBench.cpp",
"$_bench/ControlBench.cpp",
Expand Down
2 changes: 0 additions & 2 deletions gn/effects.gni
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ skia_effects_sources = [
"$_src/effects/SkBlurMask.cpp",
"$_src/effects/SkBlurMask.h",
"$_src/effects/SkBlurMaskFilter.cpp",
"$_src/effects/SkColorCubeFilter.cpp",
"$_src/effects/SkColorFilterImageFilter.cpp",
"$_src/effects/SkColorMatrix.cpp",
"$_src/effects/SkColorMatrixFilter.cpp",
Expand Down Expand Up @@ -98,7 +97,6 @@ skia_effects_sources = [
"$_include/effects/SkBlurDrawLooper.h",
"$_include/effects/SkBlurImageFilter.h",
"$_include/effects/SkBlurMaskFilter.h",
"$_include/effects/SkColorCubeFilter.h",
"$_include/effects/SkColorFilterImageFilter.h",
"$_include/effects/SkColorMatrix.h",
"$_include/effects/SkColorMatrixFilter.h",
Expand Down
1 change: 0 additions & 1 deletion gn/gm.gni
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ gm_sources = [
"$_gm/clipdrawdraw.cpp",
"$_gm/clippedbitmapshaders.cpp",
"$_gm/color4f.cpp",
"$_gm/colorcube.cpp",
"$_gm/coloremoji.cpp",
"$_gm/colorfilteralpha8.cpp",
"$_gm/colorfilterimagefilter.cpp",
Expand Down
77 changes: 0 additions & 77 deletions include/effects/SkColorCubeFilter.h

This file was deleted.

Loading

0 comments on commit efaad3c

Please sign in to comment.