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

Unified Diff: cc/ipc/render_pass_struct_traits.h

Issue 2543473004: cc: Move filters from RenderPassDrawQuad to RenderPass (Closed)
Patch Set: 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
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 e89dd84f43700d36e8c11e54ceeead8562767bcd..d78ed7c8ee374bae33598981f79803980abc2b6f 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;

Powered by Google App Engine
This is Rietveld 408576698