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

Unified Diff: cc/output/filter_operations.cc

Issue 1980613003: cc: correctly fix edge-AA for filtered render surfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 years, 7 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/filter_operations.cc
diff --git a/cc/output/filter_operations.cc b/cc/output/filter_operations.cc
index ffa37bab6c45d07542b7f3578631e7839ec01a93..c5f18dec8d6557f677e8974fd8d5c56de5947585 100644
--- a/cc/output/filter_operations.cc
+++ b/cc/output/filter_operations.cc
@@ -58,9 +58,11 @@ static int SpreadForStdDeviation(float std_deviation) {
return static_cast<int>(ceilf(d * 3.f / 2.f));
}
-gfx::Rect FilterOperations::MapRect(const gfx::Rect& rect) const {
- auto accumulate_rect = [](const gfx::Rect& rect, const FilterOperation& op) {
- return op.MapRect(rect);
+gfx::Rect FilterOperations::MapRect(const gfx::Rect& rect,
+ const SkMatrix& matrix) const {
+ auto accumulate_rect = [matrix](const gfx::Rect& rect,
+ const FilterOperation& op) {
+ return op.MapRect(rect, matrix);
};
return std::accumulate(operations_.begin(), operations_.end(), rect,
accumulate_rect);

Powered by Google App Engine
This is Rietveld 408576698