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; |