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

Unified Diff: skia/ext/opacity_draw_filter.h

Issue 2011713003: Roll skia to 8cc209111876b7c78b5ec577c9221d8ed5e21024 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 | « skia/ext/convolver_unittest.cc ('k') | skia/ext/opacity_draw_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/opacity_draw_filter.h
diff --git a/skia/ext/opacity_draw_filter.h b/skia/ext/opacity_draw_filter.h
deleted file mode 100644
index 7d11d689e16de30713e2aedae35a6c63140744f2..0000000000000000000000000000000000000000
--- a/skia/ext/opacity_draw_filter.h
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SKIA_EXT_OPACITY_DRAW_FILTER_H
-#define SKIA_EXT_OPACITY_DRAW_FILTER_H
-
-#include "base/values.h"
-#include "third_party/skia/include/core/SkDrawFilter.h"
-
-class SkPaint;
-
-namespace skia {
-
-// This filter allows setting an opacity on every draw call to a canvas, and to
-// disable image filtering. Note that the opacity setting is only correct in
-// very limited conditions: when there is only zero or one opaque, nonlayer
-// draw for every pixel in the surface.
-class SK_API OpacityDrawFilter : public SkDrawFilter {
- public:
- OpacityDrawFilter(float opacity, bool disable_image_filtering);
- ~OpacityDrawFilter() override;
- bool filter(SkPaint* paint, SkDrawFilter::Type type) override;
-
- private:
- int alpha_;
- bool disable_image_filtering_;
-};
-
-} // namespace skia
-
-#endif // SKIA_EXT_OPACITY_DRAW_FILTER_H
-
« no previous file with comments | « skia/ext/convolver_unittest.cc ('k') | skia/ext/opacity_draw_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698