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

Unified Diff: cc/output/filter_operation.h

Issue 185653013: [#8] Pass gfx::Point by const ref. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build errors on other platforms 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/output/filter_operation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/filter_operation.h
diff --git a/cc/output/filter_operation.h b/cc/output/filter_operation.h
index 7b482425193d1aea52ab49581e4a2aad0797b79c..4e51f3c51b20af942f5a155d9c953f046ed43bc4 100644
--- a/cc/output/filter_operation.h
+++ b/cc/output/filter_operation.h
@@ -113,7 +113,7 @@ class CC_EXPORT FilterOperation {
return FilterOperation(BLUR, amount);
}
- static FilterOperation CreateDropShadowFilter(gfx::Point offset,
+ static FilterOperation CreateDropShadowFilter(const gfx::Point& offset,
float std_deviation,
SkColor color) {
return FilterOperation(DROP_SHADOW, offset, std_deviation, color);
@@ -155,7 +155,7 @@ class CC_EXPORT FilterOperation {
amount_ = amount;
}
- void set_drop_shadow_offset(gfx::Point offset) {
+ void set_drop_shadow_offset(const gfx::Point& offset) {
DCHECK_EQ(type_, DROP_SHADOW);
drop_shadow_offset_ = offset;
}
@@ -197,7 +197,7 @@ class CC_EXPORT FilterOperation {
FilterOperation(FilterType type, float amount);
FilterOperation(FilterType type,
- gfx::Point offset,
+ const gfx::Point& offset,
float stdDeviation,
SkColor color);
« no previous file with comments | « cc/input/input_handler.h ('k') | cc/output/filter_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698