summaryrefslogtreecommitdiffstats
path: root/cc/layer_tree_host_common.h
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 18:16:19 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-19 18:16:19 +0000
commit0152773a7e8c07b7c8bc3b536a1fbaf444402445 (patch)
tree30a30afea17612699281006296db9050b8e653bd /cc/layer_tree_host_common.h
parent68464aacf997a60d7abe1b2d1c4873349827757a (diff)
downloadchromium_src-0152773a7e8c07b7c8bc3b536a1fbaf444402445.zip
chromium_src-0152773a7e8c07b7c8bc3b536a1fbaf444402445.tar.gz
chromium_src-0152773a7e8c07b7c8bc3b536a1fbaf444402445.tar.bz2
cc: Rename viewportPoint to screenSpacePoint to be more precise in the hit-testing code.
The point given to these functions is meant to be applied to the inverse screenSpaceTransform. That point must be in the device-viewport, ie. screen space. The current name makes it sound like the point is in logical pixels rather than device pixels, which is incorrect. Just renaming variables, no new tests. R=enne Review URL: https://codereview.chromium.org/11191076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163027 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layer_tree_host_common.h')
-rw-r--r--cc/layer_tree_host_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/layer_tree_host_common.h b/cc/layer_tree_host_common.h
index 01dc41e..238dd8d 100644
--- a/cc/layer_tree_host_common.h
+++ b/cc/layer_tree_host_common.h
@@ -26,7 +26,7 @@ public:
static void calculateDrawTransforms(CCLayerImpl* rootLayer, const IntSize& deviceViewportSize, float deviceScaleFactor, CCLayerSorter*, int maxTextureSize, std::vector<CCLayerImpl*>& renderSurfaceLayerList);
// Performs hit testing for a given renderSurfaceLayerList.
- static CCLayerImpl* findLayerThatIsHitByPoint(const IntPoint& viewportPoint, std::vector<CCLayerImpl*>& renderSurfaceLayerList);
+ static CCLayerImpl* findLayerThatIsHitByPoint(const IntPoint& screenSpacePoint, std::vector<CCLayerImpl*>& renderSurfaceLayerList);
template<typename LayerType> static bool renderSurfaceContributesToTarget(LayerType*, int targetSurfaceLayerID);