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

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

Issue 149033003: Apply automatic range checks to CC enum types across IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/quads/draw_quad.h » ('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 "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 19 matching lines...) Expand all
30 INVERT, 30 INVERT,
31 BRIGHTNESS, 31 BRIGHTNESS,
32 CONTRAST, 32 CONTRAST,
33 OPACITY, 33 OPACITY,
34 BLUR, 34 BLUR,
35 DROP_SHADOW, 35 DROP_SHADOW,
36 COLOR_MATRIX, 36 COLOR_MATRIX,
37 ZOOM, 37 ZOOM,
38 REFERENCE, 38 REFERENCE,
39 SATURATING_BRIGHTNESS, // Not used in CSS/SVG. 39 SATURATING_BRIGHTNESS, // Not used in CSS/SVG.
40 FILTER_TYPE_LAST = SATURATING_BRIGHTNESS
40 }; 41 };
41 42
42 FilterOperation(const FilterOperation& other); 43 FilterOperation(const FilterOperation& other);
43 44
44 ~FilterOperation(); 45 ~FilterOperation();
45 46
46 FilterType type() const { return type_; } 47 FilterType type() const { return type_; }
47 48
48 float amount() const { 49 float amount() const {
49 DCHECK_NE(type_, COLOR_MATRIX); 50 DCHECK_NE(type_, COLOR_MATRIX);
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 gfx::Point drop_shadow_offset_; 213 gfx::Point drop_shadow_offset_;
213 SkColor drop_shadow_color_; 214 SkColor drop_shadow_color_;
214 skia::RefPtr<SkImageFilter> image_filter_; 215 skia::RefPtr<SkImageFilter> image_filter_;
215 SkScalar matrix_[20]; 216 SkScalar matrix_[20];
216 int zoom_inset_; 217 int zoom_inset_;
217 }; 218 };
218 219
219 } // namespace cc 220 } // namespace cc
220 221
221 #endif // CC_OUTPUT_FILTER_OPERATION_H_ 222 #endif // CC_OUTPUT_FILTER_OPERATION_H_
OLDNEW
« no previous file with comments | « no previous file | cc/quads/draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698