Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1232)

Unified Diff: cc/heads_up_display_layer.cc

Issue 11358050: Remove most remaining webcore points and sizes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebasedd Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/heads_up_display_layer.h ('k') | cc/heads_up_display_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/heads_up_display_layer.cc
diff --git a/cc/heads_up_display_layer.cc b/cc/heads_up_display_layer.cc
index 4be91ce539e99713eed577d17b4e53870bbde533..2e467405dc8ae5ee8901d06bf88be975ceb48b49 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);
« no previous file with comments | « cc/heads_up_display_layer.h ('k') | cc/heads_up_display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698