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

Unified Diff: cc/quads/render_pass.h

Issue 2543473004: cc: Move filters from RenderPassDrawQuad to RenderPass (Closed)
Patch Set: Rebase again Created 4 years 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.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/render_pass.h
diff --git a/cc/quads/render_pass.h b/cc/quads/render_pass.h
index aa9fc6dad1d42c8bc47d1ba90d558c8ac9a940ae..cc87ff674b370248f7878cf0247c33202cc3dea8 100644
--- a/cc/quads/render_pass.h
+++ b/cc/quads/render_pass.h
@@ -16,6 +16,7 @@
#include "base/macros.h"
#include "cc/base/cc_export.h"
#include "cc/base/list_container.h"
+#include "cc/output/filter_operations.h"
#include "cc/quads/draw_quad.h"
#include "cc/quads/largest_draw_quad.h"
#include "ui/gfx/geometry/rect.h"
@@ -81,6 +82,8 @@ class CC_EXPORT RenderPass {
const gfx::Rect& output_rect,
const gfx::Rect& damage_rect,
const gfx::Transform& transform_to_root_target,
+ const FilterOperations& filters,
+ const FilterOperations& background_filters,
bool has_transparent_background);
void AsValueInto(base::trace_event::TracedValue* dict) const;
@@ -110,6 +113,13 @@ class CC_EXPORT RenderPass {
// render pass' |output_rect|.
gfx::Transform transform_to_root_target;
+ // Post-processing filters, applied to the pixels in the render pass' texture.
+ FilterOperations filters;
+
+ // Post-processing filters, applied to the pixels showing through the
+ // background of the render pass, from behind it.
+ FilterOperations background_filters;
+
// If false, the pixels in the render pass' texture are all opaque.
bool has_transparent_background = true;
@@ -138,6 +148,10 @@ class CC_EXPORT RenderPass {
using RenderPassList = std::vector<std::unique_ptr<RenderPass>>;
+// List of pairs of render pass id and filter, sorted by render pass id so that
+// it can be searched using std::lower_bound.
+using RenderPassFilterList = std::vector<std::pair<int, FilterOperations*>>;
+
} // namespace cc
#endif // CC_QUADS_RENDER_PASS_H_
« no previous file with comments | « cc/quads/draw_quad_unittest.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698