| OLD | NEW |
| (Empty) |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "cc/test/mock_quad_culler.h" | |
| 6 | |
| 7 namespace cc { | |
| 8 | |
| 9 MockQuadCuller::MockQuadCuller( | |
| 10 RenderPass* render_pass, | |
| 11 MockOcclusionTracker<LayerImpl>* occlusion_tracker) | |
| 12 : QuadSink(render_pass, occlusion_tracker), | |
| 13 occlusion_tracker_(occlusion_tracker) { | |
| 14 } | |
| 15 | |
| 16 MockQuadCuller::~MockQuadCuller() {} | |
| 17 | |
| 18 gfx::Rect MockQuadCuller::UnoccludedContentRect( | |
| 19 const LayerImpl* layer, | |
| 20 const gfx::Rect& content_rect, | |
| 21 const gfx::Transform& draw_transform) { | |
| 22 return occlusion_tracker_->UnoccludedContentRect( | |
| 23 layer, content_rect, draw_transform); | |
| 24 } | |
| 25 | |
| 26 gfx::Rect MockQuadCuller::UnoccludedContributingSurfaceContentRect( | |
| 27 const LayerImpl* layer, | |
| 28 const gfx::Rect& content_rect, | |
| 29 const gfx::Transform& draw_transform) { | |
| 30 return occlusion_tracker_->UnoccludedContributingSurfaceContentRect( | |
| 31 layer, content_rect, draw_transform); | |
| 32 } | |
| 33 | |
| 34 } // namespace cc | |
| OLD | NEW |