diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-02 00:19:06 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-02 00:19:06 +0000 |
commit | d455d55745439727d00254ef85a5386290a51cd3 (patch) | |
tree | cc1f7dd184a8fa7565c9fc45961e553deb4b8834 /cc/heads_up_display_layer.cc | |
parent | c2b20d05b32184ffa24102ea70a14a456f16f581 (diff) | |
download | chromium_src-d455d55745439727d00254ef85a5386290a51cd3.zip chromium_src-d455d55745439727d00254ef85a5386290a51cd3.tar.gz chromium_src-d455d55745439727d00254ef85a5386290a51cd3.tar.bz2 |
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
Diffstat (limited to 'cc/heads_up_display_layer.cc')
-rw-r--r-- | cc/heads_up_display_layer.cc | 12 |
1 files changed, 6 insertions, 6 deletions
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); |