| 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/trees/layer_tree_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
| 10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
| 11 #include "cc/layers/heads_up_display_layer_impl.h" | 11 #include "cc/layers/heads_up_display_layer_impl.h" |
| 12 #include "cc/layers/layer.h" | 12 #include "cc/layers/layer.h" |
| 13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
| 14 #include "cc/layers/layer_iterator.h" | 14 #include "cc/layers/layer_iterator.h" |
| 15 #include "cc/layers/render_surface.h" | 15 #include "cc/layers/render_surface.h" |
| 16 #include "cc/layers/render_surface_impl.h" | 16 #include "cc/layers/render_surface_impl.h" |
| 17 #include "cc/trees/layer_sorter.h" | 17 #include "cc/trees/layer_sorter.h" |
| 18 #include "cc/trees/layer_tree_impl.h" | 18 #include "cc/trees/layer_tree_impl.h" |
| 19 #include "ui/gfx/point_conversions.h" | 19 #include "ui/gfx/point_conversions.h" |
| 20 #include "ui/gfx/rect_conversions.h" | 20 #include "ui/gfx/rect_conversions.h" |
| 21 #include "ui/gfx/transform.h" | 21 #include "ui/gfx/transform.h" |
| 22 | 22 |
| 23 namespace cc { | 23 namespace cc { |
| 24 | 24 |
| 25 ScrollAndScaleSet::ScrollAndScaleSet() {} | 25 ScrollAndScaleSet::ScrollAndScaleSet() {} |
| 26 | 26 |
| 27 ScrollAndScaleSet::~ScrollAndScaleSet() {} | 27 ScrollAndScaleSet::~ScrollAndScaleSet() {} |
| 28 | 28 |
| 29 static void SortLayers(LayerList::iterator forst, | 29 static void SortLayers(LayerList::iterator first, |
| 30 LayerList::iterator end, | 30 LayerList::iterator end, |
| 31 void* layer_sorter) { | 31 void* layer_sorter) { |
| 32 NOTREACHED(); | 32 NOTREACHED(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 static void SortLayers(LayerImplList::iterator first, | 35 static void SortLayers(LayerImplList::iterator first, |
| 36 LayerImplList::iterator end, | 36 LayerImplList::iterator end, |
| 37 LayerSorter* layer_sorter) { | 37 LayerSorter* layer_sorter) { |
| 38 DCHECK(layer_sorter); | 38 DCHECK(layer_sorter); |
| 39 TRACE_EVENT0("cc", "LayerTreeHostCommon::SortLayers"); | 39 TRACE_EVENT0("cc", "LayerTreeHostCommon::SortLayers"); |
| (...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1887 // At this point, we think the point does hit the touch event handler region | 1887 // At this point, we think the point does hit the touch event handler region |
| 1888 // on the layer, but we need to walk up the parents to ensure that the layer | 1888 // on the layer, but we need to walk up the parents to ensure that the layer |
| 1889 // was not clipped in such a way that the hit point actually should not hit | 1889 // was not clipped in such a way that the hit point actually should not hit |
| 1890 // the layer. | 1890 // the layer. |
| 1891 if (PointIsClippedBySurfaceOrClipRect(screen_space_point, layer_impl)) | 1891 if (PointIsClippedBySurfaceOrClipRect(screen_space_point, layer_impl)) |
| 1892 return false; | 1892 return false; |
| 1893 | 1893 |
| 1894 return true; | 1894 return true; |
| 1895 } | 1895 } |
| 1896 } // namespace cc | 1896 } // namespace cc |
| OLD | NEW |