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

Unified Diff: cc/output/filter_operations.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: unit test Created 4 years, 6 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/output/filter_operation.cc ('k') | cc/output/filter_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/filter_operations.h
diff --git a/cc/output/filter_operations.h b/cc/output/filter_operations.h
index 542da1f2b0db97a1f56acc18c22b7ac4a7621fec..d0cd0e605a0c6c9f7207e8c0bcd7691732799239 100644
--- a/cc/output/filter_operations.h
+++ b/cc/output/filter_operations.h
@@ -58,6 +58,10 @@ class CC_EXPORT FilterOperations {
// 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;
+
void GetOutsets(int* top, int* right, int* bottom, int* left) const;
bool HasFilterThatMovesPixels() const;
bool HasFilterThatAffectsOpacity() const;
« no previous file with comments | « cc/output/filter_operation.cc ('k') | cc/output/filter_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698