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

Unified Diff: cc/output/filter_operation.h

Issue 1867913002: Implement cc::FilterOperations::MapRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU: <numeric> Created 4 years, 8 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/filter_operation.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 44590c233ba35792ef2bbaa7d2ca390b137cccc3..477759c660b8720f0761ee7d6cac65c93ffc6a94 100644
--- a/cc/output/filter_operation.h
+++ b/cc/output/filter_operation.h
@@ -22,6 +22,10 @@ class TracedValue;
class Value;
}
+namespace gfx {
+class Rect;
+}
+
namespace cc {
class CC_EXPORT FilterOperation {
@@ -225,6 +229,10 @@ class CC_EXPORT FilterOperation {
void AsValueInto(base::trace_event::TracedValue* value) const;
+ // Maps "forward" to determine which pixels in a destination rect are affected
+ // by pixels in the source rect.
+ gfx::Rect MapRect(const gfx::Rect& rect) const;
+
private:
FilterOperation(FilterType type, float amount);
« no previous file with comments | « no previous file | cc/output/filter_operation.cc » ('j') | cc/output/filter_operation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698