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

Side by Side 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, 4 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ 5 #ifndef CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_
6 #define CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ 6 #define CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "cc/ipc/quads_struct_traits.h" 9 #include "cc/ipc/quads_struct_traits.h"
10 #include "cc/ipc/render_pass.mojom-shared.h" 10 #include "cc/ipc/render_pass.mojom-shared.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static const gfx::ColorSpace& color_space( 50 static const gfx::ColorSpace& color_space(
51 const std::unique_ptr<cc::RenderPass>& input) { 51 const std::unique_ptr<cc::RenderPass>& input) {
52 return input->color_space; 52 return input->color_space;
53 } 53 }
54 54
55 static bool has_transparent_background( 55 static bool has_transparent_background(
56 const std::unique_ptr<cc::RenderPass>& input) { 56 const std::unique_ptr<cc::RenderPass>& input) {
57 return input->has_transparent_background; 57 return input->has_transparent_background;
58 } 58 }
59 59
60 static bool cache_render_pass(const std::unique_ptr<cc::RenderPass>& input) {
61 return input->cache_render_pass;
62 }
63
64 static bool has_damage_from_contributing_content(
65 const std::unique_ptr<cc::RenderPass>& input) {
66 return input->has_damage_from_contributing_content;
67 }
68
60 static const cc::QuadList& quad_list( 69 static const cc::QuadList& quad_list(
61 const std::unique_ptr<cc::RenderPass>& input) { 70 const std::unique_ptr<cc::RenderPass>& input) {
62 return input->quad_list; 71 return input->quad_list;
63 } 72 }
64 73
65 static bool Read(cc::mojom::RenderPassDataView data, 74 static bool Read(cc::mojom::RenderPassDataView data,
66 std::unique_ptr<cc::RenderPass>* out); 75 std::unique_ptr<cc::RenderPass>* out);
67 }; 76 };
68 77
69 } // namespace mojo 78 } // namespace mojo
70 79
71 #endif // CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ 80 #endif // CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_
OLDNEW
« 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