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

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

Issue 1475643006: Revert of List all child surfaces (including occluded) in CompositorFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
120 protected: 124 protected:
121 explicit RenderPass(size_t num_layers); 125 explicit RenderPass(size_t num_layers);
122 RenderPass(); 126 RenderPass();
123 RenderPass(size_t shared_quad_state_list_size, size_t quad_list_size); 127 RenderPass(size_t shared_quad_state_list_size, size_t quad_list_size);
124 128
125 private: 129 private:
126 template <typename DrawQuadType> 130 template <typename DrawQuadType>
127 DrawQuadType* CopyFromAndAppendTypedDrawQuad(const DrawQuad* quad) { 131 DrawQuadType* CopyFromAndAppendTypedDrawQuad(const DrawQuad* quad) {
128 return quad_list.AllocateAndCopyFrom(DrawQuadType::MaterialCast(quad)); 132 return quad_list.AllocateAndCopyFrom(DrawQuadType::MaterialCast(quad));
129 } 133 }
(...skipping 11 matching lines...) Expand all
141 } 145 }
142 }; 146 };
143 } // namespace BASE_HASH_NAMESPACE 147 } // namespace BASE_HASH_NAMESPACE
144 148
145 namespace cc { 149 namespace cc {
146 typedef std::vector<scoped_ptr<RenderPass>> RenderPassList; 150 typedef std::vector<scoped_ptr<RenderPass>> RenderPassList;
147 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; 151 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap;
148 } // namespace cc 152 } // namespace cc
149 153
150 #endif // CC_QUADS_RENDER_PASS_H_ 154 #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