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

Side by Side Diff: cc/output/filter_operation.h

Issue 2042413003: Implement cc::FilterOperation StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Addressed Enne's comment Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | cc/output/filter_operation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_FILTER_OPERATION_H_ 5 #ifndef CC_OUTPUT_FILTER_OPERATION_H_
6 #define CC_OUTPUT_FILTER_OPERATION_H_ 6 #define CC_OUTPUT_FILTER_OPERATION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 BLUR, 42 BLUR,
43 DROP_SHADOW, 43 DROP_SHADOW,
44 COLOR_MATRIX, 44 COLOR_MATRIX,
45 ZOOM, 45 ZOOM,
46 REFERENCE, 46 REFERENCE,
47 SATURATING_BRIGHTNESS, // Not used in CSS/SVG. 47 SATURATING_BRIGHTNESS, // Not used in CSS/SVG.
48 ALPHA_THRESHOLD, // Not used in CSS/SVG. 48 ALPHA_THRESHOLD, // Not used in CSS/SVG.
49 FILTER_TYPE_LAST = ALPHA_THRESHOLD 49 FILTER_TYPE_LAST = ALPHA_THRESHOLD
50 }; 50 };
51 51
52 FilterOperation();
53
52 FilterOperation(const FilterOperation& other); 54 FilterOperation(const FilterOperation& other);
53 55
54 ~FilterOperation(); 56 ~FilterOperation();
55 57
56 FilterType type() const { return type_; } 58 FilterType type() const { return type_; }
57 59
58 float amount() const { 60 float amount() const {
59 DCHECK_NE(type_, COLOR_MATRIX); 61 DCHECK_NE(type_, COLOR_MATRIX);
60 DCHECK_NE(type_, REFERENCE); 62 DCHECK_NE(type_, REFERENCE);
61 return amount_; 63 return amount_;
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 SkColor drop_shadow_color_; 261 SkColor drop_shadow_color_;
260 sk_sp<SkImageFilter> image_filter_; 262 sk_sp<SkImageFilter> image_filter_;
261 SkScalar matrix_[20]; 263 SkScalar matrix_[20];
262 int zoom_inset_; 264 int zoom_inset_;
263 SkRegion region_; 265 SkRegion region_;
264 }; 266 };
265 267
266 } // namespace cc 268 } // namespace cc
267 269
268 #endif // CC_OUTPUT_FILTER_OPERATION_H_ 270 #endif // CC_OUTPUT_FILTER_OPERATION_H_
OLDNEW
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | cc/output/filter_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698