| 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/render_pass.h" | 5 #include "cc/render_pass.h" |
| 6 | 6 |
| 7 #include "cc/draw_quad.h" |
| 8 #include "cc/shared_quad_state.h" |
| 9 |
| 7 namespace cc { | 10 namespace cc { |
| 8 | 11 |
| 9 scoped_ptr<RenderPass> RenderPass::Create() { | 12 scoped_ptr<RenderPass> RenderPass::Create() { |
| 10 return make_scoped_ptr(new RenderPass); | 13 return make_scoped_ptr(new RenderPass); |
| 11 } | 14 } |
| 12 | 15 |
| 13 RenderPass::RenderPass() | 16 RenderPass::RenderPass() |
| 14 : id(Id(-1, -1)), | 17 : id(Id(-1, -1)), |
| 15 has_transparent_background(true), | 18 has_transparent_background(true), |
| 16 has_occlusion_from_outside_target_surface(false) { | 19 has_occlusion_from_outside_target_surface(false) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 this->transform_to_root_target = transform_to_root_target; | 66 this->transform_to_root_target = transform_to_root_target; |
| 64 this->has_transparent_background = has_transparent_background; | 67 this->has_transparent_background = has_transparent_background; |
| 65 this->has_occlusion_from_outside_target_surface = | 68 this->has_occlusion_from_outside_target_surface = |
| 66 has_occlusion_from_outside_target_surface; | 69 has_occlusion_from_outside_target_surface; |
| 67 | 70 |
| 68 DCHECK(quad_list.empty()); | 71 DCHECK(quad_list.empty()); |
| 69 DCHECK(shared_quad_state_list.empty()); | 72 DCHECK(shared_quad_state_list.empty()); |
| 70 } | 73 } |
| 71 | 74 |
| 72 } // namespace cc | 75 } // namespace cc |
| OLD | NEW |