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

Unified Diff: ash/wm/image_grid.cc

Issue 11275089: SkRect to gfx::Rect type conversions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use ToFlooredRectDeprecated and revert Transform API change 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 | « no previous file | cc/software_renderer.cc » ('j') | cc/software_renderer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/image_grid.cc
diff --git a/ash/wm/image_grid.cc b/ash/wm/image_grid.cc
index facd566666da27a6a31c0ac96026a9b03d7348b6..d61c7571ea7f209750c3b46999d795ac6af25163 100644
--- a/ash/wm/image_grid.cc
+++ b/ash/wm/image_grid.cc
@@ -21,9 +21,9 @@ namespace internal {
gfx::Rect ImageGrid::TestAPI::GetTransformedLayerBounds(
const ui::Layer& layer) {
- gfx::Rect bounds = layer.bounds();
+ gfx::RectF bounds = layer.bounds();
danakj 2012/11/01 00:59:23 I think this change isn't needed anymore?
layer.transform().TransformRect(&bounds);
- return bounds;
+ return gfx::ToFlooredRectDeprecated(bounds);
}
ImageGrid::ImageGrid()
« no previous file with comments | « no previous file | cc/software_renderer.cc » ('j') | cc/software_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698