diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 18:16:19 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-19 18:16:19 +0000 |
commit | 0152773a7e8c07b7c8bc3b536a1fbaf444402445 (patch) | |
tree | 30a30afea17612699281006296db9050b8e653bd /cc/layer_tree_host_common.h | |
parent | 68464aacf997a60d7abe1b2d1c4873349827757a (diff) | |
download | chromium_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.h | 2 |
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); |