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

Unified Diff: cc/ipc/render_pass_struct_traits.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Fix compile error. Created 3 years, 5 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 b98f4bf23a6b00be479a4969f067260b17d6cdc4..bddebca2011ad04a7788216c2224e326ac31c423 100644
--- a/cc/ipc/render_pass_struct_traits.h
+++ b/cc/ipc/render_pass_struct_traits.h
@@ -57,6 +57,16 @@ struct StructTraits<cc::mojom::RenderPassDataView,
return input->has_transparent_background;
}
+ static bool cache_render_surface(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->cache_render_surface;
+ }
+
+ static bool has_damage_from_contributing_content(
+ const std::unique_ptr<cc::RenderPass>& input) {
+ return input->has_damage_from_contributing_content;
+ }
+
static const cc::QuadList& quad_list(
const std::unique_ptr<cc::RenderPass>& input) {
return input->quad_list;

Powered by Google App Engine
This is Rietveld 408576698