OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "cc/output/bsp_walk_action.h" | 5 #include "cc/output/bsp_walk_action.h" |
6 | 6 |
| 7 #include <memory> |
7 #include <vector> | 8 #include <vector> |
8 | 9 |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "cc/output/direct_renderer.h" | 10 #include "cc/output/direct_renderer.h" |
11 #include "cc/quads/draw_polygon.h" | 11 #include "cc/quads/draw_polygon.h" |
12 #include "cc/quads/draw_quad.h" | 12 #include "cc/quads/draw_quad.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 BspWalkActionDrawPolygon::BspWalkActionDrawPolygon( | 16 BspWalkActionDrawPolygon::BspWalkActionDrawPolygon( |
17 DirectRenderer* renderer, | 17 DirectRenderer* renderer, |
18 DirectRenderer::DrawingFrame* frame, | 18 DirectRenderer::DrawingFrame* frame, |
19 const gfx::Rect& render_pass_scissor, | 19 const gfx::Rect& render_pass_scissor, |
(...skipping 18 matching lines...) Expand all Loading... |
38 | 38 |
39 BspWalkActionToVector::BspWalkActionToVector(std::vector<DrawPolygon*>* in_list) | 39 BspWalkActionToVector::BspWalkActionToVector(std::vector<DrawPolygon*>* in_list) |
40 : list_(in_list) { | 40 : list_(in_list) { |
41 } | 41 } |
42 | 42 |
43 void BspWalkActionToVector::operator()(DrawPolygon* item) { | 43 void BspWalkActionToVector::operator()(DrawPolygon* item) { |
44 list_->push_back(item); | 44 list_->push_back(item); |
45 } | 45 } |
46 | 46 |
47 } // namespace cc | 47 } // namespace cc |
OLD | NEW |