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

Unified Diff: cc/quads/draw_quad_unittest.cc

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « cc/output/software_renderer.cc ('k') | cc/quads/picture_draw_quad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/draw_quad_unittest.cc
diff --git a/cc/quads/draw_quad_unittest.cc b/cc/quads/draw_quad_unittest.cc
index d3753ca50d404ae89d4cb882fc78f601e2886014..5755ea898407bc02fee9fd0221c0968295af0add 100644
--- a/cc/quads/draw_quad_unittest.cc
+++ b/cc/quads/draw_quad_unittest.cc
@@ -670,18 +670,12 @@ TEST(DrawQuadTest, CopyPictureDrawQuad) {
ResourceFormat texture_format = RGBA_8888;
gfx::Rect content_rect(30, 40, 20, 30);
float contents_scale = 3.141592f;
- scoped_refptr<PicturePileImpl> picture_pile = PicturePileImpl::Create();
+ scoped_refptr<RasterSource> raster_source = PicturePileImpl::Create();
CREATE_SHARED_STATE();
- CREATE_QUAD_8_NEW(PictureDrawQuad,
- opaque_rect,
- visible_rect,
- tex_coord_rect,
- texture_size,
- texture_format,
- content_rect,
- contents_scale,
- picture_pile);
+ CREATE_QUAD_8_NEW(PictureDrawQuad, opaque_rect, visible_rect, tex_coord_rect,
+ texture_size, texture_format, content_rect, contents_scale,
+ raster_source);
EXPECT_EQ(DrawQuad::PICTURE_CONTENT, copy_quad->material);
EXPECT_RECT_EQ(opaque_rect, copy_quad->opaque_rect);
EXPECT_RECT_EQ(visible_rect, copy_quad->visible_rect);
@@ -690,22 +684,18 @@ TEST(DrawQuadTest, CopyPictureDrawQuad) {
EXPECT_EQ(texture_format, copy_quad->texture_format);
EXPECT_RECT_EQ(content_rect, copy_quad->content_rect);
EXPECT_EQ(contents_scale, copy_quad->contents_scale);
- EXPECT_EQ(picture_pile, copy_quad->picture_pile);
+ EXPECT_EQ(raster_source, copy_quad->raster_source);
- CREATE_QUAD_6_ALL(PictureDrawQuad,
- tex_coord_rect,
- texture_size,
- texture_format,
- content_rect,
- contents_scale,
- picture_pile);
+ CREATE_QUAD_6_ALL(PictureDrawQuad, tex_coord_rect, texture_size,
+ texture_format, content_rect, contents_scale,
+ raster_source);
EXPECT_EQ(DrawQuad::PICTURE_CONTENT, copy_quad->material);
EXPECT_EQ(tex_coord_rect, copy_quad->tex_coord_rect);
EXPECT_EQ(texture_size, copy_quad->texture_size);
EXPECT_EQ(texture_format, copy_quad->texture_format);
EXPECT_RECT_EQ(content_rect, copy_quad->content_rect);
EXPECT_EQ(contents_scale, copy_quad->contents_scale);
- EXPECT_EQ(picture_pile, copy_quad->picture_pile);
+ EXPECT_EQ(raster_source, copy_quad->raster_source);
}
class DrawQuadIteratorTest : public testing::Test {
@@ -922,18 +912,12 @@ TEST_F(DrawQuadIteratorTest, DISABLED_PictureDrawQuad) {
ResourceFormat texture_format = RGBA_8888;
gfx::Rect content_rect(30, 40, 20, 30);
float contents_scale = 3.141592f;
- scoped_refptr<PicturePileImpl> picture_pile = PicturePileImpl::Create();
+ scoped_refptr<PicturePileImpl> raster_source = PicturePileImpl::Create();
CREATE_SHARED_STATE();
- CREATE_QUAD_8_NEW(PictureDrawQuad,
- opaque_rect,
- visible_rect,
- tex_coord_rect,
- texture_size,
- texture_format,
- content_rect,
- contents_scale,
- picture_pile);
+ CREATE_QUAD_8_NEW(PictureDrawQuad, opaque_rect, visible_rect, tex_coord_rect,
+ texture_size, texture_format, content_rect, contents_scale,
+ raster_source);
EXPECT_EQ(0, IterateAndCount(quad_new));
}
« no previous file with comments | « cc/output/software_renderer.cc ('k') | cc/quads/picture_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698