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

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

Issue 2088603002: Implement RenderPass StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary change Created 4 years, 6 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 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 inline ConstBackToFrontIterator BackToFrontBegin() const { return rbegin(); } 52 inline ConstBackToFrontIterator BackToFrontBegin() const { return rbegin(); }
53 inline ConstBackToFrontIterator BackToFrontEnd() const { return rend(); } 53 inline ConstBackToFrontIterator BackToFrontEnd() const { return rend(); }
54 }; 54 };
55 55
56 typedef ListContainer<SharedQuadState> SharedQuadStateList; 56 typedef ListContainer<SharedQuadState> SharedQuadStateList;
57 57
58 class CC_EXPORT RenderPass { 58 class CC_EXPORT RenderPass {
59 public: 59 public:
60 ~RenderPass(); 60 ~RenderPass();
61 61
62 RenderPass& operator=(RenderPass&& other);
danakj 2016/06/22 00:05:09 make a constructor too then.
Fady Samuel 2016/06/22 20:08:15 This is actually an unnecessary change since I mad
63
62 static std::unique_ptr<RenderPass> Create(); 64 static std::unique_ptr<RenderPass> Create();
63 static std::unique_ptr<RenderPass> Create(size_t num_layers); 65 static std::unique_ptr<RenderPass> Create(size_t num_layers);
64 static std::unique_ptr<RenderPass> Create(size_t shared_quad_state_list_size, 66 static std::unique_ptr<RenderPass> Create(size_t shared_quad_state_list_size,
65 size_t quad_list_size); 67 size_t quad_list_size);
66 68
67 // A shallow copy of the render pass, which does not include its quads or copy 69 // A shallow copy of the render pass, which does not include its quads or copy
68 // requests. 70 // requests.
69 std::unique_ptr<RenderPass> Copy(RenderPassId new_id) const; 71 std::unique_ptr<RenderPass> Copy(RenderPassId new_id) const;
70 72
71 // A deep copy of the render passes in the list including the quads. 73 // A deep copy of the render passes in the list including the quads.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 DISALLOW_COPY_AND_ASSIGN(RenderPass); 138 DISALLOW_COPY_AND_ASSIGN(RenderPass);
137 }; 139 };
138 140
139 using RenderPassList = std::vector<std::unique_ptr<RenderPass>>; 141 using RenderPassList = std::vector<std::unique_ptr<RenderPass>>;
140 using RenderPassIdHashMap = 142 using RenderPassIdHashMap =
141 std::unordered_map<RenderPassId, RenderPass*, RenderPassIdHash>; 143 std::unordered_map<RenderPassId, RenderPass*, RenderPassIdHash>;
142 144
143 } // namespace cc 145 } // namespace cc
144 146
145 #endif // CC_QUADS_RENDER_PASS_H_ 147 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698