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

Unified Diff: cc/layers/solid_color_layer_impl_unittest.cc

Issue 12967018: cc: Avoid pointless gfx::Point/Size contructors when making Rects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RectFs as well Created 7 years, 9 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/render_surface_unittest.cc ('k') | cc/layers/tiled_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/solid_color_layer_impl_unittest.cc
diff --git a/cc/layers/solid_color_layer_impl_unittest.cc b/cc/layers/solid_color_layer_impl_unittest.cc
index b95ca0ce4be08a40310c06a0d487935ebb1df8a4..e5a9abf618e8dbd41a87e924b0cef8f18b7060d1 100644
--- a/cc/layers/solid_color_layer_impl_unittest.cc
+++ b/cc/layers/solid_color_layer_impl_unittest.cc
@@ -23,7 +23,7 @@ namespace {
TEST(SolidColorLayerImplTest, VerifyTilingCompleteAndNoOverlap) {
MockQuadCuller quad_culler;
gfx::Size layer_size = gfx::Size(800, 600);
- gfx::Rect visible_content_rect = gfx::Rect(gfx::Point(), layer_size);
+ gfx::Rect visible_content_rect = gfx::Rect(layer_size);
FakeImplProxy proxy;
FakeLayerTreeHostImpl host_impl(&proxy);
@@ -47,7 +47,7 @@ TEST(SolidColorLayerImplTest, VerifyCorrectBackgroundColorInQuad) {
MockQuadCuller quad_culler;
gfx::Size layer_size = gfx::Size(100, 100);
- gfx::Rect visible_content_rect = gfx::Rect(gfx::Point(), layer_size);
+ gfx::Rect visible_content_rect = gfx::Rect(layer_size);
FakeImplProxy proxy;
FakeLayerTreeHostImpl host_impl(&proxy);
@@ -73,7 +73,7 @@ TEST(SolidColorLayerImplTest, VerifyCorrectOpacityInQuad) {
MockQuadCuller quad_culler;
gfx::Size layer_size = gfx::Size(100, 100);
- gfx::Rect visible_content_rect = gfx::Rect(gfx::Point(), layer_size);
+ gfx::Rect visible_content_rect = gfx::Rect(layer_size);
FakeImplProxy proxy;
FakeLayerTreeHostImpl host_impl(&proxy);
@@ -100,7 +100,7 @@ TEST(SolidColorLayerImplTest, VerifyOpaqueRect) {
FakeLayerTreeHostImpl host_impl(&proxy);
gfx::Size layer_size = gfx::Size(100, 100);
- gfx::Rect visible_content_rect = gfx::Rect(gfx::Point(), layer_size);
+ gfx::Rect visible_content_rect = gfx::Rect(layer_size);
scoped_refptr<SolidColorLayer> layer = SolidColorLayer::Create();
layer->SetBounds(layer_size);
« no previous file with comments | « cc/layers/render_surface_unittest.cc ('k') | cc/layers/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698