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" | 5 #include "config.h" |
6 | 6 |
7 #include "CCLayerTreeHostCommon.h" | 7 #include "CCLayerTreeHostCommon.h" |
8 | 8 |
9 #include "CCLayerImpl.h" | 9 #include "CCLayerImpl.h" |
10 #include "CCLayerIterator.h" | 10 #include "CCLayerIterator.h" |
11 #include "CCLayerSorter.h" | 11 #include "CCLayerSorter.h" |
12 #include "CCMathUtil.h" | 12 #include "cc/math_util.h" |
13 #include "CCRenderSurface.h" | 13 #include "CCRenderSurface.h" |
14 #include "FloatQuad.h" | 14 #include "FloatQuad.h" |
15 #include "IntRect.h" | 15 #include "IntRect.h" |
16 #include "cc/layer.h" | 16 #include "cc/layer.h" |
17 #include "cc/render_surface.h" | 17 #include "cc/render_surface.h" |
18 #include <public/WebTransformationMatrix.h> | 18 #include <public/WebTransformationMatrix.h> |
19 | 19 |
20 using WebKit::WebTransformationMatrix; | 20 using WebKit::WebTransformationMatrix; |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 | 855 |
856 foundLayer = currentLayer; | 856 foundLayer = currentLayer; |
857 break; | 857 break; |
858 } | 858 } |
859 | 859 |
860 // This can potentially return 0, which means the viewportPoint did not succ
essfully hit test any layers, not even the root layer. | 860 // This can potentially return 0, which means the viewportPoint did not succ
essfully hit test any layers, not even the root layer. |
861 return foundLayer; | 861 return foundLayer; |
862 } | 862 } |
863 | 863 |
864 } // namespace cc | 864 } // namespace cc |
OLD | NEW |