From d455d55745439727d00254ef85a5386290a51cd3 Mon Sep 17 00:00:00 2001 From: "danakj@chromium.org" Date: Fri, 2 Nov 2012 00:19:06 +0000 Subject: Remove most remaining webcore points and sizes. The remaining sizes should all be becoming vectors. Some or all of the remaining points should as well. The only Int/Float Point/Size types left are in the scrolling and page scaling code, or in the LayerTilingData. R=enne BUG=147395 Review URL: https://codereview.chromium.org/11358050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165569 0039d316-1c4b-4281-b951-d872f2087c98 --- cc/heads_up_display_layer.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cc/heads_up_display_layer.cc') diff --git a/cc/heads_up_display_layer.cc b/cc/heads_up_display_layer.cc index 4be91ce..2e46740 100644 --- a/cc/heads_up_display_layer.cc +++ b/cc/heads_up_display_layer.cc @@ -21,7 +21,7 @@ HeadsUpDisplayLayer::HeadsUpDisplayLayer() : Layer() { - setBounds(IntSize(512, 128)); + setBounds(gfx::Size(512, 128)); } HeadsUpDisplayLayer::~HeadsUpDisplayLayer() @@ -33,13 +33,13 @@ void HeadsUpDisplayLayer::update(ResourceUpdateQueue&, const OcclusionTracker*, const LayerTreeSettings& settings = layerTreeHost()->settings(); int maxTextureSize = layerTreeHost()->rendererCapabilities().maxTextureSize; - IntSize bounds; + gfx::Size bounds; if (settings.showPlatformLayerTree || settings.showDebugRects()) { - bounds.setWidth(std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().width())); - bounds.setHeight(std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().height())); + int width = std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().width()); + int height = std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().height()); + bounds = gfx::Size(width, height); } else { - bounds.setWidth(512); - bounds.setHeight(128); + bounds = gfx::Size(512, 128); } setBounds(bounds); -- cgit v1.1