| 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 "config.h" | |
| 6 | |
| 7 #include "cc/render_pass.h" | 5 #include "cc/render_pass.h" |
| 8 | 6 |
| 9 #include "cc/layer_impl.h" | 7 #include "cc/layer_impl.h" |
| 10 #include "cc/math_util.h" | 8 #include "cc/math_util.h" |
| 11 #include "cc/occlusion_tracker.h" | 9 #include "cc/occlusion_tracker.h" |
| 12 #include "cc/quad_culler.h" | 10 #include "cc/quad_culler.h" |
| 13 #include "cc/shared_quad_state.h" | 11 #include "cc/shared_quad_state.h" |
| 14 #include "cc/solid_color_draw_quad.h" | 12 #include "cc/solid_color_draw_quad.h" |
| 15 #include "third_party/skia/include/core/SkImageFilter.h" | 13 #include "third_party/skia/include/core/SkImageFilter.h" |
| 16 | 14 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Skip the quad culler and just append the quads directly to avoid occl
usion checks. | 102 // Skip the quad culler and just append the quads directly to avoid occl
usion checks. |
| 105 m_quadList.append(SolidColorDrawQuad::create(sharedQuadState, layerRect,
screenBackgroundColor).PassAs<DrawQuad>()); | 103 m_quadList.append(SolidColorDrawQuad::create(sharedQuadState, layerRect,
screenBackgroundColor).PassAs<DrawQuad>()); |
| 106 } | 104 } |
| 107 } | 105 } |
| 108 | 106 |
| 109 void RenderPass::setFilter(SkImageFilter* filter) { | 107 void RenderPass::setFilter(SkImageFilter* filter) { |
| 110 SkRefCnt_SafeAssign(m_filter, filter); | 108 SkRefCnt_SafeAssign(m_filter, filter); |
| 111 } | 109 } |
| 112 | 110 |
| 113 } // namespace cc | 111 } // namespace cc |
| OLD | NEW |