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

Unified Diff: cc/quads/draw_quad_unittest.cc

Issue 1271843005: cc: Remove code for drawing checkerboard quads, it's not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-checkers: sizes 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
« no previous file with comments | « cc/quads/draw_quad.cc ('k') | cc/quads/largest_draw_quad.cc » ('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 833f388aafb6f257a702d685ddcebaaacfb1d943..1b1e9618a3252e10fe3a8e72d3f8149678c09f87 100644
--- a/cc/quads/draw_quad_unittest.cc
+++ b/cc/quads/draw_quad_unittest.cc
@@ -10,7 +10,6 @@
#include "base/compiler_specific.h"
#include "cc/base/math_util.h"
#include "cc/output/filter_operations.h"
-#include "cc/quads/checkerboard_draw_quad.h"
#include "cc/quads/debug_border_draw_quad.h"
#include "cc/quads/io_surface_draw_quad.h"
#include "cc/quads/largest_draw_quad.h"
@@ -361,24 +360,6 @@ void CompareDrawQuad(DrawQuad* quad,
} \
SETUP_AND_COPY_QUAD_NEW_RP(Type, quad_new, copy_a);
-TEST(DrawQuadTest, CopyCheckerboardDrawQuad) {
- gfx::Rect visible_rect(40, 50, 30, 20);
- SkColor color = 0xfabb0011;
- float scale = 2.3f;
- CREATE_SHARED_STATE();
-
- CREATE_QUAD_3_NEW(CheckerboardDrawQuad, visible_rect, color, scale);
- EXPECT_EQ(DrawQuad::CHECKERBOARD, copy_quad->material);
- EXPECT_EQ(visible_rect, copy_quad->visible_rect);
- EXPECT_EQ(color, copy_quad->color);
- EXPECT_EQ(scale, copy_quad->scale);
-
- CREATE_QUAD_2_ALL(CheckerboardDrawQuad, color, scale);
- EXPECT_EQ(DrawQuad::CHECKERBOARD, copy_quad->material);
- EXPECT_EQ(color, copy_quad->color);
- EXPECT_EQ(scale, copy_quad->scale);
-}
-
TEST(DrawQuadTest, CopyDebugBorderDrawQuad) {
gfx::Rect visible_rect(40, 50, 30, 20);
SkColor color = 0xfabb0011;
@@ -741,16 +722,6 @@ class DrawQuadIteratorTest : public testing::Test {
int num_resources_;
};
-TEST_F(DrawQuadIteratorTest, CheckerboardDrawQuad) {
- gfx::Rect visible_rect(40, 50, 30, 20);
- SkColor color = 0xfabb0011;
- float scale = 3.2f;
-
- CREATE_SHARED_STATE();
- CREATE_QUAD_3_NEW(CheckerboardDrawQuad, visible_rect, color, scale);
- EXPECT_EQ(0, IterateAndCount(quad_new));
-}
-
TEST_F(DrawQuadIteratorTest, DebugBorderDrawQuad) {
gfx::Rect visible_rect(40, 50, 30, 20);
SkColor color = 0xfabb0011;
@@ -965,9 +936,6 @@ TEST(DrawQuadTest, LargestQuadType) {
for (int i = 0; i <= DrawQuad::MATERIAL_LAST; ++i) {
switch (static_cast<DrawQuad::Material>(i)) {
- case DrawQuad::CHECKERBOARD:
- largest = std::max(largest, sizeof(CheckerboardDrawQuad));
- break;
case DrawQuad::DEBUG_BORDER:
largest = std::max(largest, sizeof(DebugBorderDrawQuad));
break;
@@ -1012,9 +980,6 @@ TEST(DrawQuadTest, LargestQuadType) {
LOG(ERROR) << "kLargestDrawQuad " << LargestDrawQuadSize();
for (int i = 0; i <= DrawQuad::MATERIAL_LAST; ++i) {
switch (static_cast<DrawQuad::Material>(i)) {
- case DrawQuad::CHECKERBOARD:
- LOG(ERROR) << "CheckerboardDrawQuad " << sizeof(CheckerboardDrawQuad);
- break;
case DrawQuad::DEBUG_BORDER:
LOG(ERROR) << "DebugBorderDrawQuad " << sizeof(DebugBorderDrawQuad);
break;
« no previous file with comments | « cc/quads/draw_quad.cc ('k') | cc/quads/largest_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698