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

Unified Diff: ui/gfx/compositor/layer_unittest.cc

Issue 8422009: ui/gfx: Convert CreateCanvas to use gfx::Size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months 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 | « ui/gfx/compositor/layer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/layer_unittest.cc
diff --git a/ui/gfx/compositor/layer_unittest.cc b/ui/gfx/compositor/layer_unittest.cc
index 3f7d886c7daa259949363fe6b45ef8d501637d99..1839cbe836b9f1f8928ab2efe86fac27da5d5dee 100644
--- a/ui/gfx/compositor/layer_unittest.cc
+++ b/ui/gfx/compositor/layer_unittest.cc
@@ -86,9 +86,7 @@ class LayerWithRealCompositorTest : public testing::Test {
}
gfx::Canvas* CreateCanvasForLayer(const Layer* layer) {
- return gfx::Canvas::CreateCanvas(layer->bounds().width(),
- layer->bounds().height(),
- false);
+ return gfx::Canvas::CreateCanvas(layer->bounds().size(), false);
}
void DrawTree(Layer* root) {
@@ -267,9 +265,7 @@ class LayerWithDelegateTest : public testing::Test {
}
gfx::Canvas* CreateCanvasForLayer(const Layer* layer) {
- return gfx::Canvas::CreateCanvas(layer->bounds().width(),
- layer->bounds().height(),
- false);
+ return gfx::Canvas::CreateCanvas(layer->bounds().size(), false);
}
void DrawTree(Layer* root) {
« no previous file with comments | « ui/gfx/compositor/layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698