aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/filterfastbounds.cpp
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2015-03-20 06:38:17 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-03-20 06:38:17 -0700
commit8c874eee943bdea0fab5b4d2707083c863e37c55 (patch)
tree61978b25c069b032540feb1cc0ead7c39dc32df0 /gm/filterfastbounds.cpp
parent977b6f7e7b57cd7894869f3ec025e486a8208ae0 (diff)
Move SkMatrixImageFilter into core, and add a factory fn for it.
Diffstat (limited to 'gm/filterfastbounds.cpp')
-rw-r--r--gm/filterfastbounds.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gm/filterfastbounds.cpp b/gm/filterfastbounds.cpp
index 0ae7068503..d0fed529f5 100644
--- a/gm/filterfastbounds.cpp
+++ b/gm/filterfastbounds.cpp
@@ -9,7 +9,6 @@
#include "SkBitmapSource.h"
#include "SkBlurImageFilter.h"
#include "SkDropShadowImageFilter.h"
-#include "SkMatrixImageFilter.h"
#include "SkOffsetImageFilter.h"
#include "SkPictureImageFilter.h"
#include "SkPictureRecorder.h"
@@ -93,8 +92,8 @@ static void create_paints(SkImageFilter* source, SkTArray<SkPaint>* paints) {
SkMatrix scale;
scale.setScale(2.0f, 2.0f);
- SkAutoTUnref<SkMatrixImageFilter> scaleMIF(
- SkMatrixImageFilter::Create(scale, kLow_SkFilterQuality, source));
+ SkAutoTUnref<SkImageFilter> scaleMIF(
+ SkImageFilter::CreateMatrixFilter(scale, kLow_SkFilterQuality, source));
add_paint(scaleMIF, paints);
}
@@ -103,8 +102,8 @@ static void create_paints(SkImageFilter* source, SkTArray<SkPaint>* paints) {
SkMatrix rot;
rot.setRotate(-33.3f);
- SkAutoTUnref<SkMatrixImageFilter> rotMIF(
- SkMatrixImageFilter::Create(rot, kLow_SkFilterQuality, source));
+ SkAutoTUnref<SkImageFilter> rotMIF(
+ SkImageFilter::CreateMatrixFilter(rot, kLow_SkFilterQuality, source));
add_paint(rotMIF, paints);
}