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

Side by Side 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 unified diff | Download patch
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_surface(
61 const std::unique_ptr<cc::RenderPass>& input) {
62 return input->cache_render_surface;
63 }
64
65 static bool has_damage_from_contributing_content(
66 const std::unique_ptr<cc::RenderPass>& input) {
67 return input->has_damage_from_contributing_content;
68 }
69
60 static const cc::QuadList& quad_list( 70 static const cc::QuadList& quad_list(
61 const std::unique_ptr<cc::RenderPass>& input) { 71 const std::unique_ptr<cc::RenderPass>& input) {
62 return input->quad_list; 72 return input->quad_list;
63 } 73 }
64 74
65 static bool Read(cc::mojom::RenderPassDataView data, 75 static bool Read(cc::mojom::RenderPassDataView data,
66 std::unique_ptr<cc::RenderPass>* out); 76 std::unique_ptr<cc::RenderPass>* out);
67 }; 77 };
68 78
69 } // namespace mojo 79 } // namespace mojo
70 80
71 #endif // CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_ 81 #endif // CC_IPC_RENDER_PASS_STRUCT_TRAITS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698