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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.h

Issue 2625133003: Handle geometry effects of filters in GeometryMapper (Closed)
Patch Set: - Created 3 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
Index: third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.h
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.h b/third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.h
index f364a24dfab44702c222ad9b5de0b246d264120a..eee54f00d5f9072d35f3c7428a8ea4bcdbdb7ff2 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.h
+++ b/third_party/WebKit/Source/platform/graphics/CompositorFilterOperations.h
@@ -7,6 +7,7 @@
#include "cc/output/filter_operations.h"
#include "platform/PlatformExport.h"
+#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntPoint.h"
#include "platform/graphics/Color.h"
#include "third_party/skia/include/core/SkScalar.h"
@@ -41,6 +42,12 @@ class PLATFORM_EXPORT CompositorFilterOperations {
void clear();
bool isEmpty() const;
+ // Returns a rect covering the destination pixels that can be affected by
+ // source pixels in |inputRect|.
+ FloatRect mapRect(const FloatRect& inputRect) const;
+
+ bool hasFilterThatMovesPixels() const;
+
// For reference filters, this equality operator compares pointers of the
// image_filter fields instead of their values.
bool operator==(const CompositorFilterOperations&) const;

Powered by Google App Engine
This is Rietveld 408576698