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

Unified Diff: cc/trees/layer_tree_host_pixeltest_synchronous.cc

Issue 1314943008: cc: Remove implicit conversions from Rect to RectF in src/cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: cc/trees/layer_tree_host_pixeltest_synchronous.cc
diff --git a/cc/trees/layer_tree_host_pixeltest_synchronous.cc b/cc/trees/layer_tree_host_pixeltest_synchronous.cc
index a5286a2473e63dc8a5a9915cfeaf459e4029c6e9..6cb21653544d312963e9b9f804bec04cf843a9c9 100644
--- a/cc/trees/layer_tree_host_pixeltest_synchronous.cc
+++ b/cc/trees/layer_tree_host_pixeltest_synchronous.cc
@@ -37,7 +37,7 @@ TEST_F(LayerTreeHostSynchronousPixelTest, OneContentLayer) {
FakeContentLayerClient client;
SkPaint green_paint;
green_paint.setColor(SkColorSetARGB(255, 0, 255, 0));
- client.add_draw_rect(gfx::RectF(bounds), green_paint);
+ client.add_draw_rect(gfx::Rect(bounds), green_paint);
scoped_refptr<PictureLayer> root =
PictureLayer::Create(layer_settings(), &client);
root->SetBounds(bounds);
@@ -68,7 +68,7 @@ TEST_F(LayerTreeHostSynchronousGPUPixelTest, OneContentLayer) {
FakeContentLayerClient client;
SkPaint green_paint;
green_paint.setColor(SkColorSetARGB(255, 0, 255, 0));
- client.add_draw_rect(gfx::RectF(bounds), green_paint);
+ client.add_draw_rect(gfx::Rect(bounds), green_paint);
scoped_refptr<PictureLayer> root =
PictureLayer::Create(layer_settings(), &client);
root->SetBounds(bounds);

Powered by Google App Engine
This is Rietveld 408576698