| 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 | |
| 6 #include "config.h" | 5 #include "config.h" |
| 7 | 6 |
| 8 #include "CCLayerTreeHostCommon.h" | 7 #include "CCLayerTreeHostCommon.h" |
| 9 | 8 |
| 10 #include "CCLayerImpl.h" | 9 #include "CCLayerImpl.h" |
| 11 #include "CCLayerIterator.h" | 10 #include "CCLayerIterator.h" |
| 12 #include "CCLayerSorter.h" | 11 #include "CCLayerSorter.h" |
| 13 #include "CCMathUtil.h" | 12 #include "CCMathUtil.h" |
| 14 #include "CCRenderSurface.h" | 13 #include "CCRenderSurface.h" |
| 15 #include "FloatQuad.h" | 14 #include "FloatQuad.h" |
| 16 #include "IntRect.h" | 15 #include "IntRect.h" |
| 17 #include "LayerChromium.h" | 16 #include "cc/layer.h" |
| 18 #include "RenderSurfaceChromium.h" | 17 #include "cc/render_surface.h" |
| 19 #include <public/WebTransformationMatrix.h> | 18 #include <public/WebTransformationMatrix.h> |
| 20 | 19 |
| 21 using WebKit::WebTransformationMatrix; | 20 using WebKit::WebTransformationMatrix; |
| 22 | 21 |
| 23 namespace cc { | 22 namespace cc { |
| 24 | 23 |
| 25 CCScrollAndScaleSet::CCScrollAndScaleSet() | 24 CCScrollAndScaleSet::CCScrollAndScaleSet() |
| 26 { | 25 { |
| 27 } | 26 } |
| 28 | 27 |
| (...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 856 | 855 |
| 857 foundLayer = currentLayer; | 856 foundLayer = currentLayer; |
| 858 break; | 857 break; |
| 859 } | 858 } |
| 860 | 859 |
| 861 // 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. |
| 862 return foundLayer; | 861 return foundLayer; |
| 863 } | 862 } |
| 864 | 863 |
| 865 } // namespace cc | 864 } // namespace cc |
| OLD | NEW |