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

Unified Diff: cc/ipc/render_pass_struct_traits.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Calculate damage of |force_render_surface|. Created 3 years, 7 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
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 ee69709baec8443799ff6cd1867a0de2e64c33bf..d91fa1c026790a82be069fd9b1a361a12eb3d625 100644
--- a/cc/ipc/render_pass_struct_traits.h
+++ b/cc/ipc/render_pass_struct_traits.h
@@ -57,6 +57,21 @@ struct StructTraits<cc::mojom::RenderPassDataView,
return input->has_transparent_background;
}
+ static bool force_render_surface(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->force_render_surface;
+ }
+
+ static bool has_property_change_on_contributing_render_surface(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->has_property_change_on_contributing_render_surface;
+ }
+
+ static bool has_damage_on_surface_quad(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->has_damage_on_surface_quad;
+ }
+
static const cc::QuadList& quad_list(
const std::unique_ptr<cc::RenderPass>& input) {
return input->quad_list;
« no previous file with comments | « cc/ipc/render_pass.mojom ('k') | cc/ipc/render_pass_struct_traits.cc » ('j') | cc/layers/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698