Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Side by Side Diff: cc/layer_tree_host_common.cc

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/layer_tree_host_common.h" 5 #include "cc/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/heads_up_display_layer_impl.h" 11 #include "cc/heads_up_display_layer_impl.h"
11 #include "cc/layer.h" 12 #include "cc/layer.h"
12 #include "cc/layer_impl.h" 13 #include "cc/layer_impl.h"
13 #include "cc/layer_iterator.h" 14 #include "cc/layer_iterator.h"
14 #include "cc/layer_sorter.h" 15 #include "cc/layer_sorter.h"
15 #include "cc/layer_tree_impl.h" 16 #include "cc/layer_tree_impl.h"
16 #include "cc/math_util.h"
17 #include "cc/render_surface.h" 17 #include "cc/render_surface.h"
18 #include "cc/render_surface_impl.h" 18 #include "cc/render_surface_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 {
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 1214
1215 // At this point, we think the point does hit the touch event handler region o n the layer, but we need to walk up 1215 // At this point, we think the point does hit the touch event handler region o n the layer, but we need to walk up
1216 // the parents to ensure that the layer was not clipped in such a way that the 1216 // the parents to ensure that the layer was not clipped in such a way that the
1217 // hit point actually should not hit the layer. 1217 // hit point actually should not hit the layer.
1218 if (pointIsClippedBySurfaceOrClipRect(screenSpacePoint, layerImpl)) 1218 if (pointIsClippedBySurfaceOrClipRect(screenSpacePoint, layerImpl))
1219 return false; 1219 return false;
1220 1220
1221 return true; 1221 return true;
1222 } 1222 }
1223 } // namespace cc 1223 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698