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

Side by Side Diff: cc/quads/render_pass.h

Issue 1430363002: List all child surfaces (including occluded) in CompositorFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/output/compositor_frame_metadata.h ('k') | cc/quads/render_pass_unittest.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_QUADS_RENDER_PASS_H_ 5 #ifndef CC_QUADS_RENDER_PASS_H_
6 #define CC_QUADS_RENDER_PASS_H_ 6 #define CC_QUADS_RENDER_PASS_H_
7 7
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 // If non-empty, the renderer should produce a copy of the render pass' 111 // If non-empty, the renderer should produce a copy of the render pass'
112 // contents as a bitmap, and give a copy of the bitmap to each callback in 112 // contents as a bitmap, and give a copy of the bitmap to each callback in
113 // this list. This property should not be serialized between compositors, as 113 // this list. This property should not be serialized between compositors, as
114 // it only makes sense in the root compositor. 114 // it only makes sense in the root compositor.
115 std::vector<scoped_ptr<CopyOutputRequest>> copy_requests; 115 std::vector<scoped_ptr<CopyOutputRequest>> copy_requests;
116 116
117 QuadList quad_list; 117 QuadList quad_list;
118 SharedQuadStateList shared_quad_state_list; 118 SharedQuadStateList shared_quad_state_list;
119 119
120 // This vector contains the complete set of SurfaceIds referenced by
121 // DrawQuads in quad_list.
122 std::vector<SurfaceId> referenced_surfaces;
123
124 protected: 120 protected:
125 explicit RenderPass(size_t num_layers); 121 explicit RenderPass(size_t num_layers);
126 RenderPass(); 122 RenderPass();
127 RenderPass(size_t shared_quad_state_list_size, size_t quad_list_size); 123 RenderPass(size_t shared_quad_state_list_size, size_t quad_list_size);
128 124
129 private: 125 private:
130 template <typename DrawQuadType> 126 template <typename DrawQuadType>
131 DrawQuadType* CopyFromAndAppendTypedDrawQuad(const DrawQuad* quad) { 127 DrawQuadType* CopyFromAndAppendTypedDrawQuad(const DrawQuad* quad) {
132 return quad_list.AllocateAndCopyFrom(DrawQuadType::MaterialCast(quad)); 128 return quad_list.AllocateAndCopyFrom(DrawQuadType::MaterialCast(quad));
133 } 129 }
(...skipping 11 matching lines...) Expand all
145 } 141 }
146 }; 142 };
147 } // namespace BASE_HASH_NAMESPACE 143 } // namespace BASE_HASH_NAMESPACE
148 144
149 namespace cc { 145 namespace cc {
150 typedef std::vector<scoped_ptr<RenderPass>> RenderPassList; 146 typedef std::vector<scoped_ptr<RenderPass>> RenderPassList;
151 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; 147 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap;
152 } // namespace cc 148 } // namespace cc
153 149
154 #endif // CC_QUADS_RENDER_PASS_H_ 150 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_metadata.h ('k') | cc/quads/render_pass_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698