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

Unified Diff: cc/ipc/render_pass_struct_traits.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/ipc/render_pass.mojom ('k') | cc/ipc/render_pass_struct_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/render_pass_struct_traits.h
diff --git a/cc/ipc/render_pass_struct_traits.h b/cc/ipc/render_pass_struct_traits.h
index 95a31cfd9fcbe394cb2381f99f9c4e0ec3751adf..124415233ca29242591d90d5a37c90eab52ed552 100644
--- a/cc/ipc/render_pass_struct_traits.h
+++ b/cc/ipc/render_pass_struct_traits.h
@@ -36,6 +36,16 @@ struct StructTraits<cc::mojom::RenderPassDataView,
return input->transform_to_root_target;
}
+ static const cc::FilterOperations& filters(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->filters;
+ }
+
+ static const cc::FilterOperations& background_filters(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->background_filters;
+ }
+
static bool has_transparent_background(
const std::unique_ptr<cc::RenderPass>& input) {
return input->has_transparent_background;
« no previous file with comments | « cc/ipc/render_pass.mojom ('k') | cc/ipc/render_pass_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698