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

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

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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/quads/picture_draw_quad.cc ('k') | cc/quads/render_pass.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 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/containers/hash_tables.h" 12 #include "base/containers/hash_tables.h"
13 #include "cc/base/cc_export.h"
14 #include "cc/base/scoped_ptr_vector.h" 13 #include "cc/base/scoped_ptr_vector.h"
15 #include "cc/quads/list_container.h" 14 #include "cc/quads/list_container.h"
16 #include "cc/quads/render_pass_id.h" 15 #include "cc/quads/render_pass_id.h"
17 #include "skia/ext/refptr.h" 16 #include "skia/ext/refptr.h"
18 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/geometry/rect_f.h" 18 #include "ui/gfx/geometry/rect_f.h"
20 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
21 20
22 namespace base { 21 namespace base {
23 namespace trace_event { 22 namespace trace_event {
(...skipping 18 matching lines...) Expand all
42 typedef QuadList::ConstReverseIterator ConstBackToFrontIterator; 41 typedef QuadList::ConstReverseIterator ConstBackToFrontIterator;
43 42
44 inline BackToFrontIterator BackToFrontBegin() { return rbegin(); } 43 inline BackToFrontIterator BackToFrontBegin() { return rbegin(); }
45 inline BackToFrontIterator BackToFrontEnd() { return rend(); } 44 inline BackToFrontIterator BackToFrontEnd() { return rend(); }
46 inline ConstBackToFrontIterator BackToFrontBegin() const { return rbegin(); } 45 inline ConstBackToFrontIterator BackToFrontBegin() const { return rbegin(); }
47 inline ConstBackToFrontIterator BackToFrontEnd() const { return rend(); } 46 inline ConstBackToFrontIterator BackToFrontEnd() const { return rend(); }
48 }; 47 };
49 48
50 typedef ListContainer<SharedQuadState> SharedQuadStateList; 49 typedef ListContainer<SharedQuadState> SharedQuadStateList;
51 50
52 class CC_EXPORT RenderPass { 51 class RenderPass {
53 public: 52 public:
54 ~RenderPass(); 53 ~RenderPass();
55 54
56 static scoped_ptr<RenderPass> Create(); 55 static scoped_ptr<RenderPass> Create();
57 static scoped_ptr<RenderPass> Create(size_t num_layers); 56 static scoped_ptr<RenderPass> Create(size_t num_layers);
58 static scoped_ptr<RenderPass> Create(size_t shared_quad_state_list_size, 57 static scoped_ptr<RenderPass> Create(size_t shared_quad_state_list_size,
59 size_t quad_list_size); 58 size_t quad_list_size);
60 59
61 // A shallow copy of the render pass, which does not include its quads or copy 60 // A shallow copy of the render pass, which does not include its quads or copy
62 // requests. 61 // requests.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 139 }
141 }; 140 };
142 } // namespace BASE_HASH_NAMESPACE 141 } // namespace BASE_HASH_NAMESPACE
143 142
144 namespace cc { 143 namespace cc {
145 typedef ScopedPtrVector<RenderPass> RenderPassList; 144 typedef ScopedPtrVector<RenderPass> RenderPassList;
146 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; 145 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap;
147 } // namespace cc 146 } // namespace cc
148 147
149 #endif // CC_QUADS_RENDER_PASS_H_ 148 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « cc/quads/picture_draw_quad.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698