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

Unified Diff: include/core/SkMatrixImageFilter.h

Issue 1013753013: Move SkMatrixImageFilter.h into src/core. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkMatrixImageFilter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkMatrixImageFilter.h
diff --git a/include/core/SkMatrixImageFilter.h b/include/core/SkMatrixImageFilter.h
deleted file mode 100644
index 2c11aa63a315a6240db47ac995b9edf202421bd0..0000000000000000000000000000000000000000
--- a/include/core/SkMatrixImageFilter.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * Copyright 2014 The Android Open Source Project
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkMatrixImageFilter_DEFINED
-#define SkMatrixImageFilter_DEFINED
-
-#include "SkImageFilter.h"
-#include "SkScalar.h"
-#include "SkSize.h"
-#include "SkPoint.h"
-#include "SkPaint.h"
-
-/*! \class SkMatrixImageFilter
- Matrix transformation image filter. This filter draws its source
- input transformed by the given matrix.
- */
-
-class SK_API SkMatrixImageFilter : public SkImageFilter {
-public:
- /** Construct a 2D transformation image filter.
- * @param transform The matrix to apply when drawing the src bitmap
- * @param filterLevel The quality of filtering to apply when scaling.
- * @param input The input image filter. If NULL, the src bitmap
- * passed to filterImage() is used instead.
- */
-
- static SkMatrixImageFilter* Create(const SkMatrix& transform,
- SkFilterQuality,
- SkImageFilter* input = NULL);
-#ifdef SK_SUPPORT_LEGACY_FILTERLEVEL_ENUM
- static SkMatrixImageFilter* Create(const SkMatrix& transform,
- SkPaint::FilterLevel level,
- SkImageFilter* input = NULL) {
- return Create(transform, SkFilterQuality(level), input);
- }
-#endif
- virtual ~SkMatrixImageFilter();
-
- void computeFastBounds(const SkRect&, SkRect*) const SK_OVERRIDE;
-
- SK_TO_STRING_OVERRIDE()
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkMatrixImageFilter)
-
-protected:
- SkMatrixImageFilter(const SkMatrix& transform,
- SkFilterQuality,
- SkImageFilter* input);
- void flatten(SkWriteBuffer&) const SK_OVERRIDE;
-
- virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&,
- SkBitmap* result, SkIPoint* loc) const SK_OVERRIDE;
- virtual bool onFilterBounds(const SkIRect& src, const SkMatrix&,
- SkIRect* dst) const SK_OVERRIDE;
-
-private:
- SkMatrix fTransform;
- SkFilterQuality fFilterQuality;
- typedef SkImageFilter INHERITED;
-};
-
-#endif
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkMatrixImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698