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

Unified Diff: cc/output/render_surface_filters.cc

Issue 22875045: cc: Remove unnecessary "default" cases from switch statements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove changes to enums that require arraysize Created 7 years, 4 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
Index: cc/output/render_surface_filters.cc
diff --git a/cc/output/render_surface_filters.cc b/cc/output/render_surface_filters.cc
index fa84e67f4d3913dd66ef067eb55d72e031c6cd20..6df8d3793f7d723c191d612297a8efc7eead570f 100644
--- a/cc/output/render_surface_filters.cc
+++ b/cc/output/render_surface_filters.cc
@@ -226,9 +226,13 @@ bool GetColorMatrix(const FilterOperation& op, SkScalar matrix[20]) {
memcpy(matrix, op.matrix(), sizeof(SkScalar[20]));
return true;
}
- default:
- return false;
+ case FilterOperation::BLUR:
+ case FilterOperation::DROP_SHADOW:
+ case FilterOperation::ZOOM: {
+ break;
danakj 2013/08/26 15:55:39 and return false here with NOTREACHED below? also
reveman 2013/08/26 17:16:57 Done.
+ }
}
+ return false;
}
class FilterBufferState {

Powered by Google App Engine
This is Rietveld 408576698