OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CC_BLINK_WEB_FILTER_OPERATIONS_IMPL_H_ | |
6 #define CC_BLINK_WEB_FILTER_OPERATIONS_IMPL_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "cc/blink/cc_blink_export.h" | |
10 #include "cc/output/filter_operations.h" | |
11 #include "third_party/WebKit/public/platform/WebFilterOperations.h" | |
12 | |
13 namespace cc_blink { | |
14 | |
15 class WebFilterOperationsImpl : public blink::WebFilterOperations { | |
16 public: | |
17 CC_BLINK_EXPORT WebFilterOperationsImpl(); | |
18 ~WebFilterOperationsImpl() override; | |
19 | |
20 const cc::FilterOperations& AsFilterOperations() const; | |
21 | |
22 // Implementation of blink::WebFilterOperations methods | |
23 void appendGrayscaleFilter(float amount) override; | |
24 void appendSepiaFilter(float amount) override; | |
25 void appendSaturateFilter(float amount) override; | |
26 void appendHueRotateFilter(float amount) override; | |
27 void appendInvertFilter(float amount) override; | |
28 void appendBrightnessFilter(float amount) override; | |
29 void appendContrastFilter(float amount) override; | |
30 void appendOpacityFilter(float amount) override; | |
31 void appendBlurFilter(float amount) override; | |
32 void appendDropShadowFilter(blink::WebPoint offset, | |
33 float std_deviation, | |
34 blink::WebColor color) override; | |
35 void appendColorMatrixFilter(SkScalar matrix[20]) override; | |
36 void appendZoomFilter(float amount, int inset) override; | |
37 void appendSaturatingBrightnessFilter(float amount) override; | |
38 void appendReferenceFilter(SkImageFilter* image_filter) override; | |
39 | |
40 void clear() override; | |
41 bool isEmpty() const override; | |
42 | |
43 private: | |
44 cc::FilterOperations filter_operations_; | |
45 | |
46 DISALLOW_COPY_AND_ASSIGN(WebFilterOperationsImpl); | |
47 }; | |
48 | |
49 } // namespace cc_blink | |
50 | |
51 #endif // CC_BLINK_WEB_FILTER_OPERATIONS_IMPL_H_ | |
OLD | NEW |