| OLD | NEW |
| 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 #include "cc/quads/render_pass.h" | 5 #include "cc/quads/render_pass.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
| 9 #include "cc/debug/traced_value.h" | 9 #include "cc/debug/traced_value.h" |
| 10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads"), | 167 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads"), |
| 168 value.get(), "cc::RenderPass", id.AsTracingId()); | 168 value.get(), "cc::RenderPass", id.AsTracingId()); |
| 169 return value.PassAs<base::Value>(); | 169 return value.PassAs<base::Value>(); |
| 170 } | 170 } |
| 171 | 171 |
| 172 SharedQuadState* RenderPass::CreateAndAppendSharedQuadState() { | 172 SharedQuadState* RenderPass::CreateAndAppendSharedQuadState() { |
| 173 shared_quad_state_list.push_back(make_scoped_ptr(new SharedQuadState)); | 173 shared_quad_state_list.push_back(make_scoped_ptr(new SharedQuadState)); |
| 174 return shared_quad_state_list.back(); | 174 return shared_quad_state_list.back(); |
| 175 } | 175 } |
| 176 | 176 |
| 177 void RenderPass::AppendDrawQuad(scoped_ptr<DrawQuad> draw_quad) { |
| 178 quad_list.push_back(draw_quad.Pass()); |
| 179 } |
| 180 |
| 177 } // namespace cc | 181 } // namespace cc |
| OLD | NEW |