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

Unified Diff: cc/output/filter_operation.h

Issue 1998233002: cc: Implement and use FilterOperations::MapRectReverse for mapping backdrop bounding box. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « no previous file | cc/output/filter_operation.cc » ('j') | cc/output/gl_renderer.cc » ('J')
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 8f9c2f027b6bacdd704cc19da08cc189e6fa51de..df67acd9ad961b9040140d68366377e67309342b 100644
--- a/cc/output/filter_operation.h
+++ b/cc/output/filter_operation.h
@@ -233,6 +233,10 @@ class CC_EXPORT FilterOperation {
// by pixels in the source rect.
gfx::Rect MapRect(const gfx::Rect& rect, const SkMatrix& matrix) const;
+ // Maps "backward" to determine which pixels in the source affect the pixels
+ // in the destination rect.
+ gfx::Rect MapRectReverse(const gfx::Rect& rect, const SkMatrix& matrix) const;
+
private:
FilterOperation(FilterType type, float amount);
« no previous file with comments | « no previous file | cc/output/filter_operation.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698