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

Unified Diff: cc/ipc/render_pass_struct_traits.h

Issue 2873593002: Force use of and cache render surface. (Closed)
Patch Set: Rebased to resolve conflict. 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
« 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 b98f4bf23a6b00be479a4969f067260b17d6cdc4..dd9e767d77ded906d64849e8d91f0eae44eef5bd 100644
--- a/cc/ipc/render_pass_struct_traits.h
+++ b/cc/ipc/render_pass_struct_traits.h
@@ -57,6 +57,15 @@ struct StructTraits<cc::mojom::RenderPassDataView,
return input->has_transparent_background;
}
+ static bool cache_render_pass(const std::unique_ptr<cc::RenderPass>& input) {
+ return input->cache_render_pass;
+ }
+
+ 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;
« 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