| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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/trees/occlusion_tracker.h" | 5 #include "cc/trees/occlusion_tracker.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
| 10 #include "cc/debug/overdraw_metrics.h" | 10 #include "cc/debug/overdraw_metrics.h" |
| 11 #include "cc/layers/layer.h" | 11 #include "cc/layers/layer.h" |
| 12 #include "cc/layers/layer_impl.h" | 12 #include "cc/layers/layer_impl.h" |
| 13 #include "cc/layers/render_surface.h" |
| 14 #include "cc/layers/render_surface_impl.h" |
| 13 #include "ui/gfx/quad_f.h" | 15 #include "ui/gfx/quad_f.h" |
| 14 #include "ui/gfx/rect_conversions.h" | 16 #include "ui/gfx/rect_conversions.h" |
| 15 | 17 |
| 16 namespace cc { | 18 namespace cc { |
| 17 | 19 |
| 18 template <typename LayerType, typename RenderSurfaceType> | 20 template <typename LayerType, typename RenderSurfaceType> |
| 19 OcclusionTrackerBase<LayerType, RenderSurfaceType>::OcclusionTrackerBase( | 21 OcclusionTrackerBase<LayerType, RenderSurfaceType>::OcclusionTrackerBase( |
| 20 gfx::Rect screen_space_clip_rect, bool record_metrics_for_frame) | 22 gfx::Rect screen_space_clip_rect, bool record_metrics_for_frame) |
| 21 : screen_space_clip_rect_(screen_space_clip_rect), | 23 : screen_space_clip_rect_(screen_space_clip_rect), |
| 22 overdraw_metrics_(OverdrawMetrics::Create(record_metrics_for_frame)), | 24 overdraw_metrics_(OverdrawMetrics::Create(record_metrics_for_frame)), |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 } | 712 } |
| 711 | 713 |
| 712 return unoccluded_rect; | 714 return unoccluded_rect; |
| 713 } | 715 } |
| 714 | 716 |
| 715 // Instantiate (and export) templates here for the linker. | 717 // Instantiate (and export) templates here for the linker. |
| 716 template class OcclusionTrackerBase<Layer, RenderSurface>; | 718 template class OcclusionTrackerBase<Layer, RenderSurface>; |
| 717 template class OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>; | 719 template class OcclusionTrackerBase<LayerImpl, RenderSurfaceImpl>; |
| 718 | 720 |
| 719 } // namespace cc | 721 } // namespace cc |
| OLD | NEW |