From 0152773a7e8c07b7c8bc3b536a1fbaf444402445 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Fri, 19 Oct 2012 18:16:19 +0000 Subject: 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 --- cc/layer_tree_host_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cc/layer_tree_host_common.h') 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& renderSurfaceLayerList); // Performs hit testing for a given renderSurfaceLayerList. - static CCLayerImpl* findLayerThatIsHitByPoint(const IntPoint& viewportPoint, std::vector& renderSurfaceLayerList); + static CCLayerImpl* findLayerThatIsHitByPoint(const IntPoint& screenSpacePoint, std::vector& renderSurfaceLayerList); template static bool renderSurfaceContributesToTarget(LayerType*, int targetSurfaceLayerID); -- cgit v1.1