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

Unified Diff: cc/quads/render_pass_draw_quad.h

Issue 2297213003: Fix CSS reference filters with negative transformed children. (Closed)
Patch Set: Created 4 years, 4 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/quads/draw_quad_unittest.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass_draw_quad.h
diff --git a/cc/quads/render_pass_draw_quad.h b/cc/quads/render_pass_draw_quad.h
index a8cc9ee85baab53bfd85e6695ef5f8aaae98ad3a..851451b6209e477d99f4b4e79d270eb41a8d23ab 100644
--- a/cc/quads/render_pass_draw_quad.h
+++ b/cc/quads/render_pass_draw_quad.h
@@ -14,6 +14,8 @@
#include "cc/quads/draw_quad.h"
#include "cc/quads/render_pass_id.h"
+#include "ui/gfx/geometry/point_f.h"
+
namespace cc {
class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
@@ -33,6 +35,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
const gfx::Size& mask_texture_size,
const FilterOperations& filters,
const gfx::Vector2dF& filters_scale,
+ const gfx::PointF& filters_origin,
const FilterOperations& background_filters);
void SetAll(const SharedQuadState* shared_quad_state,
@@ -46,6 +49,7 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
const gfx::Size& mask_texture_size,
const FilterOperations& filters,
const gfx::Vector2dF& filters_scale,
+ const gfx::PointF& filters_origin,
const FilterOperations& background_filters);
RenderPassId render_pass_id;
@@ -61,6 +65,10 @@ class CC_EXPORT RenderPassDrawQuad : public DrawQuad {
// content-to-target-space scale, and device pixel ratio.
gfx::Vector2dF filters_scale;
+ // The origin for post-processing filters which will be used to offset
+ // crop rects, lights, etc.
+ gfx::PointF filters_origin;
+
// Post-processing filters, applied to the pixels showing through the
// background of the render pass, from behind it.
FilterOperations background_filters;
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/render_pass_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698