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

Unified Diff: cc/layers/ui_resource_layer_impl_unittest.cc

Issue 634683003: Converted LayerImpl::bounds() to return SizeF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « cc/layers/ui_resource_layer_impl.cc ('k') | cc/test/layer_tree_json_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/ui_resource_layer_impl_unittest.cc
diff --git a/cc/layers/ui_resource_layer_impl_unittest.cc b/cc/layers/ui_resource_layer_impl_unittest.cc
index 66db3218a52f3e95206a4aea88f794bcc82c5ecf..58263949a7e67bf54a9e18ef009a24fe1c88dd6c 100644
--- a/cc/layers/ui_resource_layer_impl_unittest.cc
+++ b/cc/layers/ui_resource_layer_impl_unittest.cc
@@ -15,6 +15,7 @@
#include "cc/trees/single_thread_proxy.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/gfx/geometry/size_conversions.h"
#include "ui/gfx/transform.h"
namespace cc {
@@ -122,7 +123,7 @@ TEST(UIResourceLayerImplTest, VerifySetOpaqueOnSkBitmap) {
layer_size,
opaque,
uid);
- expected_opaque_bounds = gfx::Rect(layer->bounds());
+ expected_opaque_bounds = gfx::Rect(gfx::ToCeiledSize(layer->bounds()));
OpaqueBoundsTest(layer.Pass(), expected_opaque_bounds);
}
@@ -144,7 +145,7 @@ TEST(UIResourceLayerImplTest, VerifySetOpaqueOnLayer) {
layer = GenerateUIResourceLayer(
&host_impl, bitmap_size, layer_size, skbitmap_opaque, uid);
layer->SetContentsOpaque(true);
- expected_opaque_bounds = gfx::Rect(layer->bounds());
+ expected_opaque_bounds = gfx::Rect(gfx::ToCeiledSize(layer->bounds()));
OpaqueBoundsTest(layer.Pass(), expected_opaque_bounds);
}
« no previous file with comments | « cc/layers/ui_resource_layer_impl.cc ('k') | cc/test/layer_tree_json_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698